The good deeds which endure are:
Subḥānallāh.
Walḥamdu lillāh.
Wa lā ilāha illallāh
Wallāhu Akbar
Wa lā ḥawla wa lā quwwata illā billāh.
The good deeds which endure are:
Glorified is Allah,
and
The praise is for Allah,
and
There is none worthy of worship but Allah,
and
Allah is the Most Great,
and
There is no power and no might except by Allah.
Reference:
Ahmad (no. 513) (Ahmad Shakir, ed.) and its chain of narration is
authentic. See Majma'uz-Zawa'id 1/297. Ibn Hajar mentions it in
Bulughul-Maram saying that Ibn Hibban and Al-Hakim considered it authentic.