Sahih al-Bukhari 7176, 7177
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
إِنِّي لاَ أَدْرِي مَنْ أَذِنَ مِنْكُمْ مِمَّنْ لَمْ يَأْذَنْ، فَارْجِعُوا حَتَّى يَرْفَعَ إِلَيْنَا عُرَفَاؤُكُمْ أَمْرَكُمْ "
Narrated `Urwa bin Az-Zubair:
Marwan bin Al-Hakam and Al-Miswar bin Makhrama told him that when the Muslims were permitted to set free the captives of Hawazin, Allah's Messenger (ﷺ) said, "I do not know who amongst you has agreed (to it) and who has not. Go back so that your 'Urafa' may submit your decision to us." So the people returned and their 'Urafa' talked to them and then came back to Allah's Messenger (ﷺ) and told him that the people had given their consent happily and permitted (their captives to be freed).
Full reference and source
Sahih al-Bukhari 7176, 7177 In-book : Book 93, Hadith 40 USC-MSA web (English) : Vol. 9, Book 89, Hadith 288 (deprecated)
View source on Sunnah.com (opens in a new tab)