The Lord spoke to Moses:
References for Exodus 30:11
"When you take a census of the Israelites to register them, each of the men must pay a ransom for himself to the Lord as they are registered. Then no plague will come on them as they are registered.
Everyone who is registered must pay half a shekel/ 5 of an ounce of silver according to the sanctuary shekel (20 gerahs to the shekel). This half shekel is a contribution to the Lord.
References for Exodus 30:13
Each man who is registered, 20 years old or more, must give this contribution to the Lord.
The wealthy may not give more, and the poor may not give less, than half a shekel when giving the contribution to the Lord to atone for your lives.
References for Exodus 30:15
Take the atonement money from the Israelites and use it for the service of the tent of meeting. It will serve as a reminder for the Israelites before the Lord to atone for your lives."
References for Exodus 30:16