The Explanation After the Parting
Al-Khidr made clear that the ship belonged to poor people working at sea, so he wanted to make it faulty because behind them was a king who took every ship by force. So the fault that Musa, peace be upon him, objected to was a cause for preserving it from seizure. As for the boy, his parents were believers, and he feared they would be burdened by his transgression and disbelief, and his Lord wanted to replace them with one better than him in purity and nearer in kinship. This is special knowledge that Allah had taught him, and not a ruling that anyone has the right to make from assumptions about a child or his family.
English narration has not been recorded yet
