Sayyiduna Abdullah bin Abbas (may Allah be pleased with him) narrates the statement of Sayyiduna Sa'b bin Jathamah (may Allah be pleased with him): He heard the Prophet Muhammad (peace and blessings be upon him) saying: "Pasture is only the property of Allah and His Messenger." The narrator says: I asked the Prophet Muhammad (peace and blessings be upon him) about the children of the polytheists: Should we kill them along with their people? The Prophet Muhammad (peace and blessings be upon him) said: "Yes! They are part of them." (The narrator states) Then, on the occasion of the Battle of Hunayn, the Prophet Muhammad (peace and blessings be upon him) forbade killing them.
Hadith Referenceصحیح ابن حبان / كتاب الإيمان / 137
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - «صحيح أبي داود» (2397).فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده حسن، محمد بن عمرو هو ابن علقمة بن وقاص الليثي المدني، قال الحافظ في"التقريب": صدوق له أوهام، وباقي رجاله ثقات.