Anas bin Malik reported,

The Messenger of Allah ﷺ took hold of a branch and shook it, but nothing fell from it. He shook it again, but nothing fell. Then he shook it once more, and its leaves fell off. The Messenger of Allah ﷺ said, "Saying 'Glory be to Allah,' 'Praise be to Allah,' 'There is no god but Allah,' and 'Allah is the Greatest' shakes off sins just as a tree sheds its leaves."

Azami 10813

Hasan

عن أنس

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

الأعظمي 10813حسن
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 10813 (2nd edition)
Azami 10813