Sunan an-Nasa'i, Book 34, Hadith 40 (In-Book)

It was narrated that 'Abdur-Rahman bin 'Alqamah Ath-Thaqafi said: "The delegation of Thaqif came to the Messenger of Allah, bringing a gift with them. He said: 'Is it a gift or charity?' If it was a gift it would be for the sake of the Messenger of Allah and to have their needs met, and if it was charity then it would be in the cause of Allah. They said: 'It is a gift.' So he accepted it from them, and sat with them, and they asked questions, until he prayed Zuhr with 'Asr."

أَخْبَرَنَا هَنَّادُ بْنُ السَّرِيِّ، قَالَ حَدَّثَنَا أَبُو بَكْرِ بْنُ عَيَّاشٍ، عَنْ يَحْيَى بْنِ هَانِئٍ، عَنْ أَبِي حُذَيْفَةَ، عَنْ عَبْدِ الْمَلِكِ بْنِ مُحَمَّدِ بْنِ بَشِيرٍ، عَنْ عَبْدِ الرَّحْمَنِ بْنِ عَلْقَمَةَ الثَّقَفِيِّ، قَالَ قَدِمَ وَفْدُ ثَقِيفٍ عَلَى رَسُولِ اللَّهِ صلى الله عليه وسلم وَمَعَهُمْ هَدِيَّةٌ فَقَالَ ‏ "‏ أَهَدِيَّةٌ أَمْ صَدَقَةٌ فَإِنْ كَانَتْ هَدِيَّةً فَإِنَّمَا يُبْتَغَى بِهَا وَجْهُ رَسُولِ اللَّهِ صلى الله عليه وسلم وَقَضَاءُ الْحَاجَةِ وَإِنْ كَانَتْ صَدَقَةً فَإِنَّمَا يُبْتَغَى بِهَا وَجْهُ اللَّهِ عَزَّ وَجَلَّ ‏" ‏ ‏.‏ قَالُوا لاَ بَلْ هَدِيَّةٌ ‏.‏ فَقَبِلَهَا مِنْهُمْ وَقَعَدَ مَعَهُمْ يُسَائِلُهُمْ وَيُسَائِلُونَهُ حَتَّى صَلَّى الظُّهْرَ مَعَ الْعَصْرِ ‏.‏

sunnah.com