One of the most frightening incidences inĀ TanachĀ is when Hashem tempts David HaMelech to count the Jewish people for no perceivable reason, leading to a disastrous plague.
As the verse states, āThe anger of Hashem again ļ¬ared against Israel and he incited David against them, saying, āGo count Israel and Yehuda!āā
What caused Hashemās anger to ļ¬are up against Israel? With typical humility,Ā RashiĀ admits: āI do not know for what reason!ā. Imagine that: Rashi could've written anything he wished and we'd have accepted because of his greatness, yet even he was forced concede he didn't know.
On the other hand, theĀ Yalkut Shimoni offers a surprising explanation for Hashemās anger and explains how this incident left a permanent stamp on ourĀ Tefilah (prayer)Ā until this day.
Not David HaMelech's time
According to theĀ Yalkut Shimoni, this tragic plague was rooted in an episode that occurred years earlier when David HaMelech ļ¬nished defeating his enemies and decided that it was high time to build Hashem aĀ Beit HamikdashĀ of wood and stone_._
Does the Torah (DevarimĀ 12:10) not say, āYou will cross the Yarden and settle in the landā¦, and He will give you rest from all your enemies around and dwell securely,ā and then state immediately afterwards, āAnd the place Hashem yourG-dĀ chooses to rest His name there, to there you shall bring all that I command you, your burnt offerings?ā
This clearly indicates that once the Jewish people gain peace and security in Eretz Israel,Ā they should build aĀ Beit HamikdashĀ in Yerushalayim where Hashem chose to rest His name.
Initially, even the prophet Natan thought that this wasĀ self-evident.Ā When David HaMelech said to him, āSee now, I am sitting in a house of cedars, while the ark ofĀ G-dis sitting in a curtain!ā Natan responded, āAll that is in your heart, go and do, for Hashem is with you.ā
Then came the bombshell; Hashem had different plans. That very night, He instructed the prophet Natan to tell the king that the Beit HamikdashĀ would be built not by him, but by his son, Shlomo . As David HaMelech later told Shlomo (Divrei HayamimĀ I 22:8) āThe word of Hashem came upon me, saying, āYou have spilt much blood and made great wars. You will not build a house for My name, for much blood have you spilt earthwards before Me.āā
Simply understood, although the kingās conquering of the land was a tremendousĀ mitzvah, nevertheless, just as one may not lift iron on the altar stones, so David HaMelech who spilt the blood of Israelās enemies was unworthy to build Hashemās House. TheĀ Yalkut ShimoniĀ (ShmuelĀ II ch. 7), however, says the verse means the absolute opposite:
āWhen David heard this [that he could not build theĀ Beit Hamikdash because he had shed blood], he was afraid and said, āI am disqualiļ¬ed from building theĀ Beit Hamikdash!ā
āSaid R. Yehuda bā R. Ilai, the Holy One said to him, āDavid, do not fear, By your life, they [those whom you killed] are like sacriļ¬ces.ā
āHe said to him, āIf so, why canāt I build it?ā
āThe Holy One said to him, āBecause if you build it, it will last forever, and never be destroyed.ā
āHe said to him, āIf so, that would be good!ā
āThe Holy One said to him, āIt is revealed before Me that they will sin and I will vent My rage on it [theĀ Beit Hamikdash] and destroy it, and they will be saved as it is written, āHe poured His wrath like ļ¬re on the tent of the daughter ofĀ Tzion.āā
āThe Holy One said to him, āBy your life, because you thought of building it, even though Shlomo your son built it, I will inscribe it in your name [as it says], āMizmor, a song of the dedication of the House to David.āāā
Although prevented from building Hashemās house, David HaMelech made huge preparations for its future construction:
Rav Huna says in theĀ Yalkut Shimoni, āHe dug 1,500Ā amahĀ to reach the virgin earth when he built the foundations of the house.ā He also made the gates. That is why Yirmiyahu writes inĀ EichaĀ (ch. 2), āIts gates sunk in the ground.ā The enemy could not destroy the Temple gates since everything David built lasted forever (SotaĀ 9a).
David Hamelech also drew up the plans for the futureĀ Beit Hamikdash and collected tons of gold and silver, and endless amounts of copper, iron, wood, and stones for the future House (Divrei HayamimĀ II ch. 29).
Klal IsraelĀ must have been devastated. Over three hundred yearsĀ had passed since the Jews arrived in Eretz Israel,Ā and then, just when the time was ripe_,_Ā Hashem announced that theĀ Beit HamikdashĀ must wait for yet another generation. What could they do about it? A decree is a decree! People turned to their Torah studies and work and the matter drifted from their minds.
According to theĀ Yalkut Shimoni,Ā this is what brought a plague upon them:
āAll those many people that fell [in the plague], [died] because they did not demand the building of theĀ Beit Hamikdash.Ā Is this not aĀ kal vachomer (a fortiori argument)?
If such for these people who never saw theĀ Beit Hamikdash,Ā how much more does it apply to us? Therefore the early prophets decreed that Israel should pray three times each day, āPlease, return YourĀ ShechinaĀ toĀ Tziyon.āā
Now thisĀ MidrashĀ is incredible for two reasons. First, once Hashem explicitly told David HaMelech that he could not build theĀ Beit HamikdashĀ for very good reason, what hope did the Jews have of rescinding His decision? Second, did the king's digging of the Temple foundation, building its gates, and collecting building materials not prove that everything possible was being done for the futureĀ Beit Mamikdash?
The Ramban's answer
Amazingly, theĀ RambanĀ (Bamidbar 16:21) says the same explanation as theĀ Yalkut Shimoni without ever having seen it and he also answers our two questions. After citing the verses andĀ RashiāsĀ admission that he does not know why Hashem punished Israel, theĀ RambanĀ continues:
āI say, by way of logic, that this was a punishment of Israel for delaying the building of theĀ Beit Habechira,Ā for the ark was going from tent to tent, like a stranger in the land. The tribes did not rise up saying, āLet us seek Hashem and build the house for His name,ā as it says, āYou shall seek His presence and come thereā (DevarimĀ 12:5), until David arose after many days and a long time as it says⦠Hashem held David back as it says⦠and the building was delayed further until Shlomoās rule."
āHad Israel desired it earlier and arose from the beginning, it would have been done in the days of one of the judges or in the days of Shaul, or even in the days of David. Because if the tribes of Israel arose in the matter, [David] would not have been the builder; rather they would have been the builders.
āBut when the people paid no attention, and David paid attention and arose and prepared everything, he was the builderā¦. Therefore, the building was delayed all the days of David through the sin of Israel. Thus, the wrath came on them. And therefore the place that Hashem chose to place His name there was known (identiļ¬ed) with their punishment and their plague.ā
The account raises a question: why did the place chosen for Hashem's name become associated with the plague and its end?
Yoav's attempt to foil the sensus
Blinded by Hashemās decree, David HaMelech ordered his top general, Yoav ben Tzeruya, to travel throughout the nation, from Dan to Beāer Sheva, and count the people, and when Yoav tried to dissuade him, the king retorted, āEither you are the king and I am the general, or I am king and you are the general!ā
Yoav made every attempt to foil David HaMelechās plans, ļ¬rst going to the obstinate tribe of Gad in the hope that they would resist and refuse to be counted, then omitting the tribe of Levi since Moshe had not counted them amongĀ Klal Israel,Ā and omitting Dan as they had been decimated in the episode of theĀ Pilegesh bāGivah.
In addition, he stretched out the count over nine months and twenty days hoping that the king might change his mind. Finally, he returned to David HaMelech and gave him the count: āIsrael were 800,000 soldiers who drew the sword, and the people of Yehuda were 500,000 men.ā (ShmuelĀ II 24:13)
Only then when it was too late, did the king realize what he had done and confess, āI have sinned greatly with what I did. And now, Hashem, remove your servantās sin as I have been very foolishā (Ibid v. 10).
When Gad the Navi (prophet) gave David HaMelech a choice of three punishments: āEither seven years of famine in your land, or three months that you ļ¬ee before your pursuing enemy, or three days of plague in your land,ā the king answered with the words ofĀ Tachanun, āI am greatly troubled. Let us fall in the hand of Hashem as His mercies are many, and let me fall not in the hand of man.ā He preferred the plague where only Hashem would decide who lives or dies, and where wealth and power make no difference.
The plague lasted only a few hours. āHashem put a plague on Israel from morning until the same time [the next day]. Seventy thousand people died of the nation from Dan to Beāer Sheva.ā
Now, Hashem hinted why he had brought this plague upon the people. As the destroying angel reached the threshing ļ¬eld of Arneva the Yevusite in Yerushalayim, Hashem told it to cease its destruction, and Gad then ordered David HaMelech to go to buy the ļ¬eld from Arneva and offer sacriļ¬ces to Hashem. Why here? Because as the RambanĀ said earlier, āthe place that Hashem chose to place His name there was [now] known (identiļ¬ed) with their punishment and their plague.ā
This ļ¬eld was the site of the futureĀ Beit Hamikdash.Ā By buying it and offering sacriļ¬ces, David HaMelech atoned for the peopleās sin of failing to earnestly seek the building of theĀ Beit Hamikdash.
It's another man playing the harp, not King David.
Why did the ļ¬eld belong to Arneva the Yevusite? Could Hashem not have arranged that the king buy it from a Jew?
The great Mekubal R' Menachem Azaria (the Ramah MiPano)Ā teaches in his book Gilgulei Neshamot that Arneva was the incarnation of Efron Hachiti who had been stingy when he sold the Machpeila Cave to Avrohom and hinted at a hefty price. Now, Arneva rectiļ¬ed this shortcoming by offering David the ļ¬eld for nothing and providing him with his cattle and plowing equipment in order to bring offerings on this future site of theĀ Beit Hamikdash.
However, in order to gain full atonement for the people, David HaMelech refused to accept the ļ¬eld for free and paid for it by taking ļ¬fty shekels from each tribe. The verses conclude (v. 25): āDavid built an altar to Hashem there and offered burnt offerings and peace offerings. And Hashem heeded the land, and the plague ceased from Israel.ā
This shows a little bit on how much the power of desire can accomplish. Had we really wanted the Beit HaMikdash, maybe it would've been built earlier. May we all use our desire for the final redemption and Third Beit HaMikdash in our days.

