Surah Al-Isra, ayah 19

17:19

وَمَنۡ أَرَادَ ٱلۡأٓخِرَةَ وَسَعَىٰ لَهَا سَعۡيَهَا وَهُوَ مُؤۡمِنٞ فَأُوْلَٰٓئِكَ كَانَ سَعۡيُهُم مَّشۡكُورٗا ١٩

Waman arādal-ākhirata wasa'ā lahā sa'yahā wahuwa mu'minun fa ulā'ika kāna sa'yuhum mashkūrā

But whoever desires the Hereafter and exerts the effort due to it while he is a believer - it is those whose effort is ever appreciated [by Allāh].