Miswar bin Makhrama reported,

They both reported that when the delegation of Hawazin came to the Prophet ﷺ, he stood among the people, praised Allah as He deserves, and then said, "To proceed. Your brothers have come to us as repentant, and I have decided to return their captives to them. Whoever among you wishes to do this willingly, let him do so. And whoever wishes to keep his share until we give him compensation from the first spoils Allah grants us, let him do so."The people said, "We willingly give it up for you."

Bukhari 2583-2584

Sahih

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

المسور بن مخرمة رضي الله عنهما ومروان

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

البخاري 2583-2584صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Gifts, their virtue, and encouragement to give them
Chapter
Whoever considers gifting an absent item permissible
Numbering
Darussalam 2583-2584
Bukhari2583 2583-2584