God was showing the Israelites [His people] His plan for redemption by looking ahead to the time when Jesus would come and shed His blood at Calvary.
God told them, "The blood shall be to you for a token upon the houses where ye are: and when I see the blood, I will pass over you and the plague shall not be upon you to destroy you, when I smite the land of Egypt" Exodus 12:13.