The death of the firstborn raises a difficult moral question.
Why does a judgment against Pharaoh lead to the death of people whose individual responsibility is not specified?
The account provides several elements: the oppression of Israel, repeated warnings, the persistent refusal of the sovereign and the announcement of judgment as early as Exodus 4.23.
However, it does not provide a detailed explanation of the responsibility of each victim.
The Bible presents a collective judgment here.
In other passages, she also affirms the importance of personal responsibility.
Deuteronomy 24.16 prohibits, in the context of human justice, the killing of children for the sins of their parents.
Ezekiel 18 points out that each one is answerable for his own conduct.
These texts do not describe exactly the same situation as the tenth plague, but they remind that individual responsibility has an important place in Scripture.
Divine justice is affirmed in the account of the Exodus, without all moral questions being fully explained.