Musnad Ahmad 3200
Grading supplied with this record: Its isnad is saheeh]
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
It was narrated that Yazeed bin Hurmuz said:
Najdah bin ‘Amir wrote to Ibn ‘Abbas (رضي الله عنه) asking him about some things. I saw Ibn ‘Abbas (رضي الله عنه) when he read his letter and when he wrote his reply. He wrote to him (saying): You asked me... And he narrated the hadeeth. And he said: You asked me, did the Messenger of Allah (ﷺ) kill any of the boys of the mushrikeen? The Messenger of Allah (ﷺ) did not kill any of them and you should not kill any of them unless you know about them what al-Khadir know about the boy when he killed him.
Full reference and source
Musnad Ahmad 3200 Arabic/English book : Book 25, Hadith 3200
View source on Sunnah.com (opens in a new tab)