Th the aftermath of the Golden Calf there were two rounds of executions: the massacre of 3000 fellow Jews and the Heavenly plague:
"וַיַּעֲשׂוּ בְנֵי־לֵוִי כִּדְבַר מֹשֶׁה וַיִּפֹּל מִן־הָעָם בַּיּוֹם הַהוּא כִּשְׁלֹשֶׁת אַלְפֵי אִישׁ׃...
"וַיִּגֹּף ה' אֶת־הָעָם עַל אֲשֶׁר עָשׂוּ אֶת־הָעֵגֶל אֲשֶׁר עָשָׂה אַהֲרֹן׃"
The Levites did as Moses had bidden, and some three thousand of the people fell that day... Then the LORD sent a plague upon the people, for what they did with the calf that Aaron made." Exodus.32.35
Who was executed with the plague (Rashi - Heavenly death) and for what?