Ubayy b. Ka'b reported God's messenger as saying, "The youth whom al-Khidr killed was given the nature of an infidel, and if he had lived, he would certainly have imposed on his parents insolence and unbelief[*]."
*Cf. Quran, 28:80.
(Bukhari and Muslim.)