The Messenger of Allah ﷺ said, "Allah has chosen four phrases from speech: Subhan Allah, Alhamdulillah, La ilaha illa Allah, and Allahu Akbar. Whoever says Subhan Allah, twenty good deeds are recorded for him and twenty bad deeds are wiped away from him. Whoever says Allahu Akbar receives the same. Whoever says La ilaha illa Allah receives the same. And whoever says Alhamdulillahi Rabbil Alameen from his own heart, thirty good deeds are recorded for him and thirty bad deeds are wiped away from him by it."
حدثنا عبد الرحمن بن مهدي حدثنا إسرائيل عن أبي سنان عن أبي صالح الحنفي
أن رسول الله ﷺ قال إن الله اصطفى من الكلام أربعا سبحان الله والحمد لله ولا إله إلا الله والله أكبر فمن قال سبحان الله كتب له عشرون حسنة وحطت عنه عشرون سيئة ومن قال الله أكبر مثل ذلك ومن قال لا إله إلا الله مثل ذلك ومن قال الحمد لله رب العالمين من قبل نفسه كتب أو كتبت له ثلاثون حسنة وحط أو حطت عنه بها ثلاثون سيئة
Its isnad is sahih. Israil is Ibn Yunus, and Abu Sinan is Darrar bin Mura. Abu Salih Hanafi is Abdul-Rahman bin Qays, and the hadith is found in Ibn Abu Shayba 10/428 no. 9876. Haythami said in 10/87, "Its narrators are the narrators of the sahih." Hakim graded it sahih in 1/512, and Dhahabi agreed with him.