Miswar bin Makhrama and Marwan bin Hakam reported,

When the delegation of Hawazin came to the Messenger of Allah ﷺ as Muslims and asked him to return to them their property and their captives, the Messenger of Allah ﷺ stood up and said to them, "The most beloved speech to me is the truest. Choose one of the two groups, either the captives or the property. I have been waiting for you."The Messenger of Allah ﷺ had waited for them for more than ten nights when he returned from Taif. When it became clear to them that the Messenger of Allah ﷺ would only return one of the two groups to them, they said, "Then we choose our captives."The Messenger of Allah ﷺ then stood up among the Muslims, praised Allah as He deserves, then said, "To proceed. These brothers of yours have come to us in repentance, and I have decided to return their captives to them. Whoever among you wishes to do so willingly, let him do so. And whoever wishes to hold to his share until we give him compensation from the first spoils Allah grants us, let him do so."The people said, "We willingly grant that to the Messenger of Allah ﷺ for them."The Messenger of Allah ﷺ said, "We do not know which of you has consented to this and which has not. Go back so that your chiefs can convey your decision to us."The people went back, and their chiefs spoke with them, then they returned to the Messenger of Allah ﷺ and informed him that they had willingly consented and given their permission.

Bukhari 2307-2308

Sahih

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

مروان بن الحكم والمسور بن مخرمة أخبراه

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

البخاري 2307-2308صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Agency
Chapter
If something is given to a representative or intercessor of a people, it is permissible
Numbering
Darussalam 2307-2308
Bukhari2307 2307-2308