Abdullah bin Umar reported,

We were with the Prophet ﷺ on a journey, and I was riding a young, unruly camel. The Prophet ﷺ said to Umar, "Sell it to me." So he bought it, then the Prophet ﷺ said, "It is yours, Abdullah."

Bukhari 2611

Sahih

وقال الحميدي حدثنا سفيان، حدثنا عمرو،

عن ابن عمر رضى الله عنهما قال

كنا مع النبي ﷺ في سفر، وكنت على بكر صعب فقال النبي ﷺ لعمر بعنيه. فابتاعه فقال النبي ﷺ هو لك يا عبد الله.

البخاري 2611صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Gifts, their virtue, and encouragement to give them
Chapter
If one gifts a camel to a man while he is riding it, it is permissible
Numbering
Darussalam 2611
Bukhari 2611