(35) باب إِذَا قَضَى الْحَاكِمُ بِجَوْرٍ أَوْ خِلاَفِ أَهْلِ الْعِلْمِ فَهْوَ رَدٌّ
Narrated Ibn `Umar:
The Prophet (ﷺ) sent (an army unit under the command of) Khalid bin Al-Walid to fight against the tribe of Bani Jadhima and those people could not express themselves by saying, "Aslamna," but they said, "Saba'na! Saba'na! " Khalid kept on killing some of them and taking some others as captives, and he gave a captive to everyone of us and ordered everyone of us to kill his captive. I said, "By Allah, I shall not kill my captive and none of my companions shall kill his captive!" Then we mentioned that to the Prophet (ﷺ) and he said, "O Allah! I am free from what Khalid bin Al-Walid has done," and repeated it twice.
Reference: Sahih al-Bukhari 7189
In-book reference: Book 93, Hadith 51
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 9, Book 89, Hadith 299