Commentators disagree over the circumstances which mandate the donations detailed in Shemot 30:12-16. One group of commentators explain that the census is the determining factor. Within this option, Shadal maintains that half-shekels were given only in the very first census in the wilderness, while Rashi asserts that a similar procedure was followed in subsequent countings as well.
A second category of exegetes argues that support of the Mishkan or Mikdash is the main purpose, and that there is no need to give during a census. This view also divides, with Rashbam positing that the verses describe a one-off contribution to build the Mishkan, and R. Saadia claiming that the Torah is speaking of an annual obligation to support Hashem's Sanctuary. Finally, some commentators suggest that both a census and the Mishkan play a role, with Chizkuni requiring a combination of both a census and a capital campaign to create an obligation to donate, and Ramban concluding that each factor alone warrants a collection.
Census Focused
Shemot 30:12-16 commands Moshe to conduct a census using shekalim, rather than through a simple headcount. While the proceeds are used for the Tabernacle, this is not the main objective, and the Torah is not mandating a regular donation to the Mikdash.
One-time Obligation
These verses were an instruction for only a single occasion in the wilderness to count the nation via the giving of half-shekels. All future censuses, in contrast, do not require a similar donation.
"כִּי תִשָּׂא" – Shadal asserts that this was a one-time command2 to count the nation via half-shekels.3 The census is being taken at this point, as the people have just become a nation.
Concern of a plague – Shadal asserts that a census can often lead to feelings of self-confidence and hubris ("כֹּחִי וְעֹצֶם יָדִי") which, in turn, brings about punishment and devastation. The people viewed these consequences as being the result of the "evil eye," an erroneous notion that God did not correct.4 As such, Hashem told them to bring a half-shekel which could act as an atonement and save them from any negative repercussions of the counting.56
Why only one time? The donations were used to build the Tabernacle which was then able to provide protection against any negative consequences from future censuses.7
"עֲבֹדַת אֹהֶל מוֹעֵד" – The monies collected were used for the original construction of the Tabernacle. The requirement was not motivated by a need for donations,8 and was not mandated for any future upkeep. "עֲבֹדַת אֹהֶל מוֹעֵד", thus, refers not to maintenance and continued service in the Tabernacle, but to the initial building.
Censuses in Bemidbar 1 and 26 – In both of these censuses, the nation was not counted via half-shekels, and thus none are mentioned.
Shaul's censuses – These do not mention a half-shekel, as none were needed. He would likely explain both "בָזֶק" and "טְּלָאִים" as names of places.
David's census and Divine punishment – David was punished not because he did not count via shekalim but because he counted without good reason, just for his own glorification.9
Contributions mandated by Yoash – Shadal might propose that this was a special command of Yoash to bring donations for renovations of the Temple. Yoash is upset not because the people are not fulfilling a Torah prescription, but because of the lack of contributions. It is possible that he refers to these monies as "מַשְׂאַת מֹשֶׁה" not because they were originally mandated by Moshe, but to give more credence to his request, and to compare them to the nation's original donations to the Tabernacle.
One-third shekel donation in Nechemyah – This donation has nothing to do with a census but was rather a decision by the nation to contribute yearly to the Temple.
The custom of giving half-shekels –
All Future Censuses
These verses constitute an enduring ordinance that all future censuses be performed through the counting of donated items such as half-shekels, rather than via a forbidden headcount.
"כִּי תִשָּׂא" – Rashi reads this phrase as a command to immediately count the people. According to Rashi, these verses are out of chronological order and were told to Moshe only after the sin of the Golden Calf.11 He explains that since many people had just died as a punishment for their idolatry, a census was required. Rashi further states that the total from this census is transmitted in Shemot 38:26.12
Concern of a plague – Rashi explains that a simple headcount without using shekalim might bring on an "עין הרע" ("evil eye"), and this could result in a plague.
Censuses in Bemidbar 1 and 26 – Rashi states that the census in the second year in the wilderness was also performed using shekalim.13
Shaul's censuses – According to Rashi, both of Shaul's counts utilized objects, rather than simply counting the people themselves. He reads "בְּבָזֶק" and "בַּטְּלָאִים", as the names of those objects.
David's census and Divine punishment – Rashi understands that a plague came in the time of David because he counted the people without using shekalim.
"עֲבֹדַת אֹהֶל מוֹעֵד" – The silver collected from the census in the first year was used for the silver sockets of the Tabernacle. Thus, for Rashi, "עֲבֹדַת" refers to the construction work of the Mishkan, rather than its ongoing service.
Contributions mandated by Yoash –
One-third shekel donation in Nechemyah –
The custom of giving half-shekels –
Mishkan Contributions
The Torah is mandating financial support for the Mikdash, and a census is merely a vehicle through which this is achieved.
One-time Building Fund
The verses in Shemot 30 were a transient command to donate for the construction of the Tabernacle, and this was in effect only during the first year in the wilderness. This obligation does not apply to future generations.
Why only one time? Most of these commentators maintain that the collection was required for the initial construction of the Tabernacle, and as such was a one time donation. According to Qumran 4Q159, in contrast, every individual is simply required to give a once in a lifetime contribution.15
"כִּי תִשָּׂא"
Rashbam appears to view the census as a by product of the collection; once Moshe was gathering the people to collect donations, he also counted them.16
Hoil Moshe, who posits that the verses are achronological and occurred after the sin of the Golden Calf, proposes that Moshe desired to count the remaining members of the nation. Hashem saw this as an opportunity to collect money which could serve as an atonement for their sin and be used to build the Tabernacle.17
Concern of a plague – Hoil Moshe views the shekalim as atonement for the sin of the Golden Calf, and might suggest that without them, the nation would have deserved further punishment. The others do not address the issue.
"עֲבֹדַת אֹהֶל מוֹעֵד" – According to most of the commentators, this refers to the initial building of the Tabernacle. According to Qumran 4Q159, in contrast, it refers to ongoing service.
Censuses in Bemidbar 1 and 26 – No shekel donations are mentioned since regular censuses do not require such a contribution.
Shaul's censuses – Shaul did not count via shekalim since there is no obligation to do so.
David's census and Divine punishment – Hoil Moshe asserts that David is punished for the actual counting, not for the fact that he did so without taking some redemption from the people.18 As David's decision to count stemmed from a desire for honor and had no other utility, it deserved punishment.19
Contributions mandated by Yoash – This approach could suggest that Yoash, on his own, requested contributions for the upkeep of the Mikdash, unconnected to any Torah obligation.20
One-third shekel donation in Nechemyah – This can be viewed as a new obligation taken by the people upon themselves after returning to Israel. Presumably, they were influenced by the original donations given in Shemot.21
The custom of giving half-shekels – This approach would assert that this is simply a custom, likely learned from the original contributions for the Tabernacle.
Ongoing Maintenance
These verses are an eternal mitzvah to provide annual support for the Mishkan or Mikdash.
"כִּי תִשָּׂא" – Though the phrase refers to an annual counting of the people, what is actually being mandated is an annual giving of half shekels, through which the nation's number will be known. The census is really a means to an end.
Concern of a plague – The plague results from a laxity in giving contributions to the Tabernacle or Temple and is unrelated to the census.22
"עֲבֹדַת אֹהֶל מוֹעֵד" – This refers to the general upkeep and ongoing service of the Temple, including provisions for the sacrifices and the like.23
Census in Pekudei –
Censuses in Bemidbar 1 and 26 – As there is no obligation to count via shekalim, none are mentioned in these censuses.
Shaul's censuses – Here, too, there is no mention of shekalim since they are not a requirement for counting.
David's census and Divine punishment – R. Saadia asserts that David erroneously believed that the plague resulted from his counting, when in reality it was due to a different sin altogether, the nation's participation in Avshalom's rebellion.
Contributions mandated by Yoash – This story serves as the basis for this position. R. Saadia Gaon and Ibn Ezra prove from Yoash's rebuke to the nation "מַדּוּעַ לֹא דָרַשְׁתָּ עַל הַלְוִיִּם לְהָבִיא מִיהוּדָה וּמִירוּשָׁלִַם אֶת מַשְׂאַת מֹשֶׁה" that the annual contributions are mandated by Moshe in the Torah.
One-third shekel donation in Nechemyah – According to R. Saadia this was an additional third beyond the half shekel mandated by the Torah. As the returning nation was small in number, they realized that the temple expenses would not be covered if each just gave a half shekel.24
The custom of giving half-shekels – According to R. Saadia, this is not just a custom, but a Torah-mandated law.
Polemical motivations – R. Saadia may be motivated by a desire to find explicit support in Torah for the Rabbinic position regarding annual contributions to the Temple, in order to counter the arguments of the Karaites who claimed that there was no such obligation.
Combination of Factors
Both the need for a census and the requirement to support the Mishkan/Mikdash are involved in the obligation to give the half-shekels. Commentators discuss whether both factors must be present, or whether each factor suffices on its own.
A periodic obligation – According to Chizkuni, the two commands are connected and relate to various generations. Any time that there is both a need to count and a need to build a Temple/tabernacle, one must do so through a half shekel donation.
Both are ongoing – Ramban asserts that there is both an ongoing obligation to give a half shekel whenever there is a census and a separate annual obligation to contribute shekalim to the Temple.
One and one – According to the Gr"a the command to give some sort of redemptive object when counting is an ongoing obligation for future generations25 whereas the command to give half shekels for the Tabernacle was a one time command for the generation of the desert.26
Why only one time?
"כִּי תִשָּׂא" – – According to this approach, the command to give something (either shekalim or another redemptive object) when counting is an ongoing one. The language "when you count" can be understood in its simple sense.
Concern of a plague – Though not mentioned explicitly, this approach apparently assumes that counting people directly somehow results in a plague.
"עֲבֹדַת אֹהֶל מוֹעֵד" – According to Ramban this refers to maintenance of the Mikdash , while according to Chizkuni and the Gr"a it refers to the actual building of the Tabernacle/ Temple.
Census in Pekudei –
Censuses in Bemidbar 1 and 26 – Chizkuni asserts that no redemption was necessary as the silver from the first census was still in use in the Tabernacle. Ramban, in contrast, maintains that half shekels were collected during these censuses even though they are not mentioned in the verses.27
Shaul's censuses – The Gr"a maintains that any redemptive object can be used when counting and would likely explain "טְּלָאִים" as lambs and "בָזֶק" as another object.28 According to Chizkuni, it is possible that the protection afforded by the Tabernacle was still in effect and so nothing was needed when counting.
David's census and Divine punishment – Ramban29 asserts that David's census did actually involve a collection of shekalim,30 but a plague came nonetheless since David had no purpose in the counting and was thus culpable of a certain hubris.31 According to the Gr"a, in contrast, the plague came because David did not count in the proper way, and did not collect some redemptive object.32 Chizkuni argues that the plague came because the silver from the Tabernacle was no longer around to protect during a census.
Contributions mandated by Yoash – According to Ramban, this is related to the annual contribution that is mandated by the Torah. The others might suggest that this was the king's personal request of the nation.
One-third shekel donation in Nechemyah – Ramban asserts that this was an additional contribution above the half shekel as there were extra expenses when the nation returned from exile.33 The other commentators might suggest that it was simply an innovation of the people.
The custom of giving half-shekels – According to Ramban this is Biblically mandated, while according to the Gr"a it is הלכה למשה מסיני.