Shemot35:21

וַיָּבֹאוּ כָּל־אִישׁ אֲשֶׁר־נְשָׂאוֹ לִבּוֹ וְכֹל אֲשֶׁר נָדְבָה רוּחוֹ אֹתוֹ הֵבִיאוּ אֶת־תְּרוּמַת יְהוָה לִמְלֶאכֶת אֹהֶל מוֹעֵד וּלְכָל־עֲבֹדָתוֹ וּלְבִגְדֵי הַקֹּדֶשׁ׃

And they came, every man whose heart lifted him and everyone whose spirit moved him, and brought the offering of the Eternal for the work of the Tent of Meeting, for all its service and for the holy garments.

Shemot 35:21

וַיָּבֹאוּ כָּל־אִישׁ אֲשֶׁר־נְשָׂאוֹ

Shemot / Exodus 35:21 · Drash

Shemot 35:21

וַיָּבֹאוּ כָּל־אִישׁ אֲשֶׁר־נְשָׂאוֹ לִבּוֹ וְכֹל אֲשֶׁר נָדְבָה רוּחוֹ אֹתוֹ הֵבִיאוּ אֶת־תְּרוּמַת יְהוָה לִמְלֶאכֶת אֹהֶל מוֹעֵד וּלְכָל־עֲבֹדָתוֹ וּלְבִגְדֵי הַקֹּדֶשׁ׃

And they came, every man whose heart lifted him and everyone whose spirit moved him, and brought the offering of the Eternal for the work of the Tent of Meeting, for all its service and for the holy garments.

Drash דְּרָשׁ

Two kinds of givers

One gives because it is shameful not to. Another gives because he understood it is right. The Torah receives both.

Netziv: "the heart lifted" is one whose heart torments him: if he does not give like the others, he will be shamed. "The spirit moved" is one whose reason advised him to give. Be'er Mayim Chaim: both groups burned with love. Some pledged a gift at once while still standing before Moshe, and others held back so as not to make a vow, and brought the gift from home.

How Haamek Davar and Be'er Mayim Chaim explain it

Haamek Davar Every man whose heart lifted him and everyone whose spirit moved him

A man gives a gift in two ways. One gives because his heart strikes him: if he does not give like one of his fellows he will be put to shame, or he will bear punishment for closing his eyes. This is called "whose heart lifted him". And another gives because his reason and good spirit counsel him to give. And of this it is written "whose spirit moved him".

And in verse 29 Scripture explains that even one whose heart lifted him at first later came with a generous gift to the Eternal. See there.

Be'er Mayim Chaim And they came, every man whose heart lifted him and everyone whose spirit moved him, and brought

We must understand why "brought" is said twice here and why the people are divided into those "whose heart lifted them" and those "whose spirit moved them". It seems that when Moshe told the children of Israel that the Holy One, blessed is He, wants to leave everything and dwell among them out of His love for them, and let them prepare a house for Him, Israel had great love, desire and longing for this. And there were two groups among them, both for the sake of Heaven.

The first group, from fierce love, could not hold back the heart at all. While still standing before Moshe, "their heart lifted them", and a man at once took upon himself: "I will give so much for the offering of the Eternal." And the second group held back their spirit and their will, though fierce love burned in them. They thought that one may not take upon oneself in advance, even in thought alone, to give so much, because it is like a vow, and one may not vow even for a commandment, even if he has the thing at hand to give at once (as explained in the Shulchan Arukh). So they held back their spirit until they came home, and gave as a free gift what they saw in their homes, and said: "This is a gift to the Eternal."

So first it says: "And all the community of the children of Israel went out from before Moshe" (Shemot / Exodus 35:20): all went out with love and joy, as one, to give a gift to the Eternal for the Mishkan. Only there were two groups among them. Some were those "whose heart lifted them": right after going out they brought what they had pledged while standing before Moshe, and did not delay paying what they had vowed. And of the second group do not say that, God forbid, they were lax in taking the offering upon themselves. No: "all whose spirit moved them brought", because they wanted to bring it as a free gift. And it says "whose spirit moved him" and not simply "who gave", to say that his spirit was with him to give it only as a free gift, so he held back the will of his love and longing and did not take it on at once. And so further on it says: "All who were generous of heart brought brooches and earrings" (Shemot / Exodus 35:22), that is, from what was at hand they saw with their eyes and dedicated it to God Most High.

Takeaway

Netziv in Haamek Davar does not shame the one who gave out of shame: verse 29 says that later he too gave from the heart.
A vow (נֶדֶר) is a promise a person must keep. A free gift (נְדָבָה) is something he gives at once, without promising in advance.
The Shulchan Arukh is the code of Jewish law from the 16th century. Be'er Mayim Chaim points to its laws of tzedakah, help for the poor.