'Now when the LORD brings you to the land of the Canaanite, as He swore to you and to your fathers, and gives it to you,
you shall devote to the LORD every firstborn of a womb, and every firstborn offspring of an animal that you own; the males belong to the LORD.
But every firstborn of a donkey you shall redeem with a lamb, but if you do not redeem it,
then you shall break its neck; and every firstborn among your sons you shall redeem.
And it shall be when your son asks you in time to come, saying, ‘What is this?’ then you shall say to him, ‘With a powerful hand the LORD brought us out of Egypt, from the house of slavery.
And it came about, when Pharaoh was stubborn about letting us go, that the LORD put to death every firstborn in the land of Egypt, from human firstborns to animal firstborns. Therefore, I sacrifice to the LORD the males, every firstborn of a womb, but every firstborn of my sons I redeem.’
So it shall serve as a sign on your hand and as phylacteries on your forehead, for with a powerful hand the LORD brought us out of Egypt.'
Now when Pharaoh had let the people go, God did not lead them by the way of the land of the Philistines, even though it was near; for God said, 'The people might change their minds when they see war, and return to Egypt.'