Anas said that, on coming upon a tree whose leaves were withered, God's messenger struck it with his staff, and the leaves were scattered. He then said that “Praise be to God; Glory be to God; There is no god but God; and God is most great” cause a man's sins to fall away just as the leaves of that tree were falling.
Tirmidhi transmitted it, saying this is a gharib tradition.