Abdullah bin Umar reported,

He was with the Prophet ﷺ on a journey, riding a young camel belonging to Umar that was difficult to control. The camel kept pushing ahead of the Prophet ﷺ, so his father would say, "Abdullah, no one should go ahead of the Prophet ﷺ."The Prophet ﷺ said to Umar, "Sell it to me."Umar replied, "It is yours."So he bought it, then said, "It is yours, Abdullah. Do with it as you wish."

Bukhari 2610

Sahih

حدثنا عبد الله بن محمد حدثنا ابن عيينة عن عمرو

عن ابن عمر رضي الله عنهما

أنه كان مع النبي ﷺ في سفر فكان على بكر لعمر صعب فكان يتقدم النبي ﷺ فيقول أبوه يا عبد الله لا يتقدم النبي ﷺ أحد فقال له النبي ﷺ بعنيه فقال عمر هو لك فاشتراه ثم قال هو لك يا عبد الله فاصنع به ما شئت

البخاري 2610صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Gifts, their virtue, and encouragement to give them
Chapter
One who is given a gift while he has companions with him is most entitled to it
Numbering
Darussalam 2610
Bukhari 2610