Assalamu’alaikum warahmatullahi wabarakatuh,
IN THE NAME OF ALLAH, THE MOST BENEFICENT, THE MOST MERCIFUL
Al-Shanqeeti (may Allah be pleased with him) said:
The scholarly opinions concerning the “good righteous deeds that last” all boil down to one thing: they are all actions which are pleasing to Allah, whether we say that they are the five daily prayers, as was narrated from a group of the salaf, including Ibn ‘Abbaas, Sa’eed ibn Jubayr, Abu Maysarah and ‘Umar ibn Sharhabeel; or that it means [the phrases], “Subhaan-Allah wa’l-hamdu Lillaah wa laa ilaaha ill-Allah, wa Allahu akbar, wa laa hawla wa laa quwwata illa Billaah il’Ali il-‘Azeem (Glory be to Allah, praise be to Allah, there is no god but Allah, Allah is most great and there is no power and no strength except in Allah, the Exalted, the Almighty)”. This is the view of the majority of scholars. Indication of that was narrated in marfoo’ ahaadeeth narrated from Abu Sa’eed al-Khudri, Abu’l-Darda’, Abu Hurayrah, al-Nu’maan ibn Basheer and ‘Aa’ishah (may Allah be pleased with them).
This phrase, “the good righteous deeds that will last” is a general phrase which includes the five daily prayers and the five phrases mentioned above (Subhaan-Allah, etc), as well as other deeds which are pleasing to Allah, because they will abide and will not fade away or vanish like the adornments of the life of this world, and because they are also done in the manner that pleases Allah
ALLAH KNOWS BEST.