Sahih al-Bukhari 7189
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
اللَّهُمَّ إِنِّي أَبْرَأُ إِلَيْكَ مِمَّا صَنَعَ خَالِدُ بْنُ الْوَلِيدِ "
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.
Full reference and source
Sahih al-Bukhari 7189 In-book : Book 93, Hadith 51 USC-MSA web (English) : Vol. 9, Book 89, Hadith 299 (deprecated)
View source on Sunnah.com (opens in a new tab)