Jami` at-Tirmidhi, Book 48, Hadith 164 (In-Book)

Anas bin Malik narrated that: the Prophet passed by a tree with dry leaves, so he struck it with his staff, making the leaves fall. Then he said: “Indeed, ‘all praise is due to Allah, (Al-Ḥamdulillāhh)’ ‘glory to Allah, (Subḥān Allāh)’ ‘none has the right to be worshipped by Allah, (Lā Ilāha Illallāh)’ and ‘Allah is the greatest (Allāhu Akbar)’ cause the sins to fall from the worshipper, just as the leaves of this tree fall.”

حَدَّثَنَا مُحَمَّدُ بْنُ حُمَيْدٍ الرَّازِيُّ، حَدَّثَنَا الْفَضْلُ بْنُ مُوسَى، عَنِ الأَعْمَشِ، عَنْ أَنَسٍ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم مَرَّ بِشَجَرَةٍ يَابِسَةِ الْوَرَقِ فَضَرَبَهَا بِعَصَاهُ فَتَنَاثَرَ الْوَرَقُ فَقَالَ ‏ "‏ إِنَّ الْحَمْدَ لِلَّهِ وَسُبْحَانَ اللَّهِ وَلاَ إِلَهَ إِلاَّ اللَّهُ وَاللَّهُ أَكْبَرُ لَتُسَاقِطُ مِنْ ذُنُوبِ الْعَبْدِ كَمَا تَسَاقَطَ وَرَقُ هَذِهِ الشَّجَرَةِ ‏" ‏ ‏.‏ قَالَ هَذَا حَدِيثٌ غَرِيبٌ ‏.‏ وَلاَ نَعْرِفُ لِلأَعْمَشِ سَمَاعًا مِنْ أَنَسٍ إِلاَّ أَنَّهُ قَدْ رَآهُ وَنَظَرَ إِلَيْهِ ‏.‏

sunnah.com