Laws of the Firstborn: How They Were Connected to the Tenth Plague
The sacrifice of firstling animals and redemption of firstborn sons were originally not related to the exodus story. When they were linked to the tenth plague, the narrative was adjusted to have YHWH also slaughter the Egyptian firstling animals.