Abdullah bin Umar reported,

Abdullah bin Umar reported, "We were with the Prophet ﷺ on a journey, and I was riding a young, unruly camel belonging to Umar. It kept getting the better of me and surging ahead of the people, so Umar would scold it and pull it back. Then it would push forward again, and Umar would scold it and pull it back once more."The Prophet ﷺ said to Umar, "Sell it to me."Umar replied, "It is yours, Messenger of Allah."The Messenger of Allah ﷺ said, "Sell it to me."So Umar sold it to the Messenger of Allah ﷺ.Then the Prophet ﷺ said, "It is yours, Abdullah bin Umar. Do with it whatever you wish."

Azami 5451

Sahih

عن ابن عمر قال

كنا مع النبي ﷺ في سفر، فكنت على بكر صعب لعمر، فكان يغلبني، فيتقدم أمام القوم، فيزجره عمر ويرده، ثم يتقدم فيزجره عمر ويرده. فقال النبي ﷺ لعمر: بعنيه قال: هو لك يا رسول الله، فقال رسول الله ﷺ: بعنيه، فباعه من رسول الله ﷺ، فقال النبي ﷺ: هو لك يا عبد الله بن عمر، تصنع به ما شئت.

الأعظمي 5451صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Sales
Chapter
Rulings on sales and trade
Section
If one buys something and gives it as a gift immediately before they separate
Numbering
Jami al-Kamil 5451 (2nd edition)
Azami 5451