كتاب الزكاة
12
The Book of Zakat
(52)
Chapter: Gifts are permissible for the Prophet (saws) and Banu Hashim and Banu Al-Muttalib, even if the giver acquired it by way of charity. When the receipient takes possession of Charity, it is no longer described as charity, and it is permissible for anyone for whom charity is otherwise unlawful
(52)
باب إِبَاحَةِ الْهَدِيَّةِ لِلنَّبِيِّ صلى الله عليه وسلم وَلِبَنِي هَاشِمٍ وَبَنِي الْمُطَّلِبِ
Sahih Muslim 1075 a

'A'isha reported that (once) the Messenger of Allah (may peace be upon him, ) was presented with beef. It was said (by someone) that it had been given to Barira as Sadaqa. Upon this he (the Prophet) said:

It is a Sadaqa for her and a gift for us.
حَدَّثَنَا عُبَيْدُ اللَّهِ بْنُ مُعَاذٍ، حَدَّثَنَا أَبِي، حَدَّثَنَا شُعْبَةُ، ح وَحَدَّثَنَا مُحَمَّدُ بْنُ الْمُثَنَّى، وَابْنُ بَشَّارٍ - وَاللَّفْظُ لاِبْنِ الْمُثَنَّى - قَالاَ حَدَّثَنَا مُحَمَّدُ بْنُ جَعْفَرٍ، حَدَّثَنَا شُعْبَةُ، عَنِ الْحَكَمِ، عَنْ إِبْرَاهِيمَ، عَنِ الأَسْوَدِ، عَنْ عَائِشَةَ، وَأُتِيَ النَّبِيُّ، صلى الله عليه وسلم بِلَحْمِ بَقَرٍ فَقِيلَ هَذَا مَا تُصُدِّقَ بِهِ عَلَى بَرِيرَةَ ‏.‏ فَقَالَ ‏ "‏ هُوَ لَهَا صَدَقَةٌ وَلَنَا هَدِيَّةٌ ‏"‏ ‏.‏
Reference : Sahih Muslim 1075 a
In-book reference : Book 12, Hadith 223
USC-MSA web (English) reference : Book 5, Hadith 2352
  (deprecated numbering scheme)