Deuteronomy 22:18

18 The leaders of that city must take the man and punish him.