Sahih al-Bukhari, Book 97, Hadith 102 (In-Book) ⓘ
Narrated Abu Musa: Whenever a beggar or a person in need of something came to the Prophet, he used to say (to his companions), "Intercede (for him) and you will be rewarded for that, and Allah will fulfill what He will through His Apostle's tongue."
حَدَّثَنَا مُحَمَّدُ بْنُ الْعَلاَءِ، حَدَّثَنَا أَبُو أُسَامَةَ، عَنْ بُرَيْدٍ، عَنْ أَبِي بُرْدَةَ، عَنْ أَبِي مُوسَى، قَالَ كَانَ النَّبِيُّ صلى الله عليه وسلم إِذَا أَتَاهُ السَّائِلُ ـ وَرُبَّمَا قَالَ جَاءَهُ السَّائِلُ ـ أَوْ صَاحِبُ الْحَاجَةِ قَالَ " اشْفَعُوا فَلْتُؤْجَرُوا، وَيَقْضِي اللَّهُ عَلَى لِسَانِ رَسُولِهِ مَا شَاءَ " .
also referenced under: Hadith 7476 (DarusSalam) & Volume 9, Book 93, Hadith 568 (USC-MSA)