Abu Hurairah and Abu Saeed Khudri reported,

The Prophet ﷺ said, "Allah عز وجل has chosen four phrases from all speech, Subhan Allah, Alhamdulillah, La ilaha illa Allah, and Allahu Akbar. Whoever says Subhan Allah, twenty good deeds are recorded for him and twenty sins are wiped away. Whoever says Allahu Akbar, the same is recorded for him. Whoever says La ilaha illa Allah, the same is recorded for him. And whoever says Alhamdulillahi Rabbil Alamin from his own heart, thirty good deeds are recorded for him and thirty sins are wiped away."

Azami 10809

Sahih

عن أبي سعيد الخدري وأبي هريرة

عن النبي ﷺ قال: إن الله عز وجل اصطفى من الكلام أربعا: سبحان الله والحمد لله، ولا إله إلا الله، والله أكبر، قال: ومن قال: سبحان الله كتب له عشرون حسنة، وحط عنه عشرون سيئة، ومن قال: الله أكبر فمثل ذلك، ومن قال: لا إله إلا الله فمثل ذلك، ومن قال: الحمد لله رب العالمين من قبل نفسه، كتب له بها ثلاثون حسنة، وحط عنه بها ثلاثون سيئة.

الأعظمي 10809صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Supplications, remembrances, and prayer upon the chosen Prophet ﷺ
Chapter
Supplications
Section
Most beloved speech to Allah is four, "Glory be to Allah, praise be to Allah, there is no god but Allah, and Allah is the greatest"
Numbering
Jami al-Kamil 10809 (2nd edition)
Azami 10809