And I asked the Prophet (peace be upon him) about the children of the polytheists: so the Prophet (peace be upon him) said: Kill them too. Then, on the occasion of Khaybar, the Prophet (peace be upon him) forbade this.
Hadith Referenceمسند احمد / مسند المدنيين رضي الله عنهم اجمعين / 16681
Hadith Gradingحکم دارالسلام:حديث صحيح، خ: 3012، م: 1765، محمد بن عمرو حسن الحديث، وقد توبع والقائل: وقد نهى عنهم يوم خيبر: هو الزهري ولفظ خيبر تحريف قديم، والصواب: حنين