عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ رَضِيَ اللَّهُ عَنْهُ وَأَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ قَالَ إِنَّ اللَّهَ اصْطَفَى مِنَ الْكَلَامِ أَرْبَعًا سُبْحَانَ اللَّهِ وَالْحَمْدُ لِلَّهِ وَلَا إِلَهَ إِلَّا اللَّهُ وَاللَّهُ أَكْبَرُ فَمَنْ قَالَ سُبْحَانَ اللَّهِ كُتِبَ لَهُ عِشْرُونَ حَسَنَةً وَحُطَّتْ عَنْهُ عِشْرُونَ سَيِّئَةً وَمَنْ قَالَ اللَّهُ أَكْبَرُ مِثْلُ ذَلِكَ وَمَنْ قَالَ لَا إِلَهَ إِلَّا اللَّهُ مِثْلُ ذَلِكَ وَمَنْ قَالَ الْحَمْدُ لِلَّهِ رَبِّ الْعَالَمِينَ مِنْ قِبَلِ نَفْسِهِ كُتِبَتْ لَهُ ثَلَاثُونَ حَسَنَةً وَحُطَّتْ عَنْهُ ثَلَاثُونَ سَيِّئَةً
It is narrated from Sayyiduna Abu Sa'id Khudri (may Allah be pleased with him) and Sayyiduna Abu Hurairah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: Indeed, Allah Almighty has preferred four words: Subhan Allah, Alhamdulillah, La ilaha illallah, Allahu Akbar. Whoever says Subhan Allah, twenty good deeds will be written for him and twenty sins will be forgiven; whoever says Allahu Akbar, he will receive the same reward; whoever says La ilaha illallah, he will also receive the same reward; and whoever says Alhamdulillahi Rabbil 'Alamin from his heart, thirty good deeds will be written for him and thirty sins will be forgiven.