The Ethics of Voting

The Midrash says that when Hashem appointed Betzalel to build the Mishkan He first asked Moshe and Bnei Yisrael if they approved. From this we derive that a person can't be appointed as a leader without the consent of the people. What role does the Torah give Bnei Yisrael in choosing their leader?

Delivered at the OU Israel Center, March 5, 2019 (28 Adar I 5779)