Abdullah bin Umar reported,

The Prophet ﷺ sent Khalid bin Walid to the tribe of Banu Jadhimah, and he called them to Islam. They were unable to say properly, "We have accepted Islam," so they began saying, "We have changed our religion." Khalid set about killing and capturing them, and he handed each one of us a captive. When morning came, Khalid bin Walid ordered each man among us to kill his captive.Ibn Umar said, "By Allah, I will not kill my captive, nor will any of my companions kill his captive." Bishr said something similar regarding his companions and their captives.When we came to the Prophet ﷺ, what Khalid had done was mentioned to him. The Prophet ﷺ raised his hands and said, "O Allah, I disassociate myself before You from what Khalid has done."Zakariyya said in his version, "He mentioned it." And in Bishr's version, he said it twice, "O Allah, I disassociate myself before You from what Khalid has done."

Nasai 5407

Sahih

أخبرنا زكريا بن يحيى قال حدثنا عبد الأعلى بن حماد قال حدثنا بشر بن السري قال حدثنا عبد الله بن المبارك عن معمر ح وأنبأنا أحمد بن علي بن سعيد قال حدثنا يحيى بن معين قال حدثنا هشام بن يوسف وعبد الرزاق عن معمر عن الزهري

عن سالم عن أبيه قال

بعث النبي ﷺ خالد بن الوليد إلى بني جذيمة فدعاهم إلى الإسلام فلم يحسنوا أن يقولوا أسلمنا فجعلوا يقولون صبأنا وجعل خالد قتلا وأسرا قال فدفع إلى كل رجل أسيره حتى إذا أصبح يومنا أمر خالد بن الوليد أن يقتل كل رجل منا أسيره قال ابن عمر فقلت والله لا أقتل أسيري ولا يقتل أحد وقال بشر من أصحابي أسيره قال فقدمنا على النبي ﷺ فذكر له صنع خالد فقال النبي ﷺ ورفع يديه اللهم إني أبرأ إليك مما صنع خالد قال زكريا في حديثه فذكر وفي حديث بشر فقال اللهم إني أبرأ إليك مما صنع خالد مرتين

النسائي 5407صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Etiquette of judges
Chapter
Refuting the ruler when he judges unjustly
Numbering
Darussalam 5407
Nasai 5407