When 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.
God instructs Moses on the procedures for taking a census of the Israelites, including the requirement for each person to pay a ransom to avoid a plague.
partial
Fulfilled in2 Samuel 24:15
In 2 Samuel 24, King David takes a census without following the prescribed ransom, resulting in a plague. This demonstrates the consequence of not adhering to God's command, partially fulfilling the warning given in Exodus 30:12.
This prophecy underscores the importance of obedience to God's commands and the concept of atonement, which is a recurring theme throughout the Bible, pointing towards the ultimate atonement through Christ.