God required a ransom of the Israelites