Exodus 30:12 NIV

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