Bulugh al-Maram, Book 16, Hadith 1510 (English)

Ibn Umar (RAA) narrated that the Messenger of Allah said: “If anyone seeks refuge in Allah’s name, grant him protection; if anyone asks you for something in Allah’s name give him something; and if anyone does you a favor recompense him, but if you do not have the means to do so, make Dua (supplication) for him.” Related by Al-Baihaqi.

وَعَنْ اِبْنِ عُمَرَ ‏-رَضِيَ اَللَّهُ عَنْهُمَا‏- قَالَ: عَنِ النَّبِيِّ ‏- صلى الله عليه وسلم ‏-قَالَ: { مِنْ اسْتَعَاذَكُمْ بِاَللَّهِ فَأَعِيذُوهُ, وَمَنْ سَأَلَكُمْ بِاَللَّهِ فَأَعْطُوهُ, وَمَنْ أَتَى إِلَيْكُمْ مَعْرُوفًا فَكَافِئُوهُ, فَإِنْ لَمْ تَجِدُوا, فَادْعُوا لَهُ } أَخْرَجَهُ اَلْبَيْهَقِيُّ.‏ (1926)‏.‏ ‏2 ‏- صحيح.‏ رواه البيهقي (4 / 199)‏، ولا أدري لماذا عدل الحافظ عن عزو الحديث لأبي داود (1672 و 5109)‏.‏ والنسائي (5 / 82)‏، وأحمد (2 / 68 و 99 و 127)‏.‏

sunnah.com

also referenced under: Book 16, Hadith 1467 (In-Book)