The Messenger of Allah ﷺ said, "Allah does not wrong a believer of any good deed. He is rewarded for it in this world and recompensed for it in the Hereafter. As for the disbeliever, he is fed in this world for the good deeds he performed for Allah's sake, so that when he reaches the Hereafter, he has no good deed left for which to be rewarded."
قال رسول الله ﷺ: إن الله لا يظلم مؤمنا حسنة، يعطى بها في الدنيا ويجزى بها في الآخرة، وأما الكافر فيطعم بحسنات ما عمل بها الله في الدنيا، حتى إذا أفضى إلى الآخرة، لم تكن له حسنة يجزى بها.
Muslim narrated it in the Chapter on the Description of the Resurrection, Paradise, and Hellfire (2808) through several routes from Yazid bin Harun, who said, Hammam bin Yahya informed us, from Qatada, from Anas bin Malik, who said, and then he related it.In another version reported by Muslim through the route of Sulayman Taymi, from Qatada, from Anas, as a raised report, with the wording, "When the disbeliever does a good deed, he is given some worldly provision in return for it. As for the believer, Allah stores up his good deeds for him in the hereafter, while also granting him worldly provision in return for his obedience."