Language:
كتاب البيوع
34  
Sales and Trade
(47)
Chapter: To buy a thing and give it as a present
(47)
بَابُ إِذَا اشْتَرَى شَيْئًا فَوَهَبَ مِنْ سَاعَتِهِ قَبْلَ أَنْ يَتَفَرَّقَا وَلَمْ يُنْكِرِ الْبَائِعُ عَلَى الْمُشْتَرِي، أَوِ اشْتَرَى عَبْدًا فَأَعْتَقَهُ
Sahih al-Bukhari 2115
Narrated Ibn 'Umar (ra) :
We were accompanying the Prophet (ﷺ) on a journey and I was riding an unmanageable camel belonging to 'Umar (ra), and I could not bring it under my control. So, it used to go ahead of the party and 'Umar would check it and force it to retreat, and again it went ahead and again 'Umar forced it to retreat. The Prophet (ﷺ) asked 'Umar to sell that camel to him. 'Umar replied, "It is for you O Allah's Messenger !" Allah's Messenger (ﷺ) told 'Umar to sell that camel to him (not to give it as gift). So, 'Umar sold it to Allah's Messenger (ﷺ). Then the Prophet (ﷺ) said to 'Abdullah bin 'Umar "This camel is for you O 'Abdullah (as a present) and you could do with it whatever you like."
وَقَالَ الْحُمَيْدِيُّ حَدَّثَنَا سُفْيَانُ، حَدَّثَنَا عَمْرٌو، عَنِ ابْنِ عُمَرَ ـ رضى الله عنهما ـ قَالَ كُنَّا مَعَ النَّبِيِّ صلى الله عليه وسلم فِي سَفَرٍ فَكُنْتُ عَلَى بَكْرٍ صَعْبٍ لِعُمَرَ، فَكَانَ يَغْلِبُنِي فَيَتَقَدَّمُ أَمَامَ الْقَوْمِ، فَيَزْجُرُهُ عُمَرُ وَيَرُدُّهُ، ثُمَّ يَتَقَدَّمُ فَيَزْجُرُهُ عُمَرُ وَيَرُدُّهُ فَقَالَ النَّبِيُّ صلى الله عليه وسلم لِعُمَرَ ‏"‏ بِعْنِيهِ ‏"‏‏.‏ قَالَ هُوَ لَكَ يَا رَسُولَ اللَّهِ‏.‏ قَالَ ‏"‏ بِعْنِيهِ ‏"‏‏.‏ فَبَاعَهُ مِنْ رَسُولِ اللَّهِ صلى الله عليه وسلم فَقَالَ النَّبِيُّ صلى الله عليه وسلم ‏"‏ هُوَ لَكَ يَا عَبْدَ اللَّهِ بْنَ عُمَرَ تَصْنَعُ بِهِ مَا شِئْتَ ‏"‏‏.‏
Reference : Sahih al-Bukhari 2115
In-book reference : Book 34, Hadith 68
USC-MSA web (English) reference : Vol. 3, Book 34, Hadith 328
  (deprecated numbering scheme)