Language:
كتاب الهبة وفضلها والتحريض عليها
51  
Gifts
(25)
Chapter: Whosoever is given a gift while some people are sitting with him, he only has the right to have it
(25)
باب مَنْ أُهْدِيَ لَهُ هَدِيَّةٌ وَعِنْدَهُ جُلَسَاؤُهُ فَهْوَ أَحَقُّ
Sahih al-Bukhari 2609

Narrated Abu Huraira:

The Prophet (ﷺ) took a camel of special age from somebody on credit. Its owner came and demanded it back (harshly). The Prophet (ﷺ) said, "No doubt, he who has a right, can demand it." Then the Prophet (ﷺ) gave him an older camel than his camel and said, "The best amongst you is he who repays his debts in the most handsome way."

حَدَّثَنَا ابْنُ مُقَاتِلٍ، أَخْبَرَنَا عَبْدُ اللَّهِ، أَخْبَرَنَا شُعْبَةُ، عَنْ سَلَمَةَ بْنِ كُهَيْلٍ، عَنْ أَبِي سَلَمَةَ، عَنْ أَبِي هُرَيْرَةَ ـ رضى الله عنه ـ عَنِ النَّبِيِّ صلى الله عليه وسلم أَنَّهُ أَخَذَ سِنًّا فَجَاءَ صَاحِبُهُ يَتَقَاضَاهُ فَقَالَ ‏"‏ إِنَّ لِصَاحِبِ الْحَقِّ مَقَالاً ‏"‏‏.‏ ثُمَّ قَضَاهُ أَفْضَلَ مِنْ سِنِّهِ وَقَالَ ‏"‏ أَفْضَلُكُمْ أَحْسَنُكُمْ قَضَاءً ‏"‏‏.‏
Reference : Sahih al-Bukhari 2609
In-book reference : Book 51, Hadith 42
USC-MSA web (English) reference : Vol. 3, Book 47, Hadith 780
  (deprecated numbering scheme)