كتاب صفة القيامة والجنة والنار
52
Characteristics of the Day of Judgment, Paradise, and Hell
(13)
Chapter: The Believer Is Rewarded For His Good Deeds In This World, And In The Hereafter, And The Disbeliever Is Rewarded For His Good Deeds In This World
(13)
بَاب جَزَاءِ الْمُؤْمِنِ بِحَسَنَاتِهِ فِي الدُّنْيَا وَالْآخِرَةِ وَتَعْجِيلِ حَسَنَاتِ الْكَافِرِ فِي الدُّنْيَا

Anas b. Malik reported that Allah's Messenger (ﷺ) thus told him:

When a non-believer does good he is made to taste Its reward in this world. And so far as the believer is concerned, Allah stores (the reward) of his virtues for the Hereafter and provides him sustenance in accordance with his obedience to Him.
حَدَّثَنَا عَاصِمُ بْنُ النَّضْرِ التَّيْمِيُّ، حَدَّثَنَا مُعْتَمِرٌ، قَالَ سَمِعْتُ أَبِي، حَدَّثَنَا قَتَادَةُ، عَنْ أَنَسِ بْنِ مَالِكٍ، أَنَّهُ حَدَّثَ عَنْ رَسُولِ اللَّهِ صلى الله عليه وسلم ‏ "‏ إِنَّ الْكَافِرَ إِذَا عَمِلَ حَسَنَةً أُطْعِمَ بِهَا طُعْمَةً مِنَ الدُّنْيَا وَأَمَّا الْمُؤْمِنُ فَإِنَّ اللَّهَ يَدَّخِرُ لَهُ حَسَنَاتِهِ فِي الآخِرَةِ وَيُعْقِبُهُ رِزْقًا فِي الدُّنْيَا عَلَى طَاعَتِهِ ‏"‏ ‏.‏
Reference : Sahih Muslim 2808 b
In-book reference : Book 52, Hadith 44
USC-MSA web (English) reference : Book 39, Hadith 6740
  (deprecated numbering scheme)