Exodus 30:12

12 “When you take a census of the Israelites to count them, each one must pay the LORD a ransom for his life at the time he is counted. Then no plague will come on them when you number them.

Read Exodus 30:12 Using Other Translations

When thou takest the sum of the children of Israel after their number, then shall they give every man a ransom for his soul unto the LORD, when thou numberest them; that there be no plague among them, when thou numberest them.
"When you take the census of the people of Israel, then each shall give a ransom for his life to the LORD when you number them, that there be no plague among them when you number them.
“Whenever you take a census of the people of Israel, each man who is counted must pay a ransom for himself to the LORD . Then no plague will strike the people as you count them.