The boy whom al-Khidr had killed was created an infidel. Had he lived, he would have moved his parents to rebellion and unbelief.
Sunan Abi Dawud Book 42, Hadith 110