Sayyidina Ibn Abbas reported that a man came to Allah’s Messenger (SAW) and said, “0 Messenger of Allah, I saw myself in the night, while I was asleep, as though I offer salah behind a tree. As I prostrated, the tree prostrated with my prostration. I heard it saying:
0 Allah record for me a reward against it, with You, and remove from me against it a burden (of sin). And let it be with You a treasure. And accept it from me as You did accept it from Your servant Dawud.
Ibn Jurayj reported from Ibn Abbas (RA) that the Prophet (SAW) then recited a verse calling for prostration and made a prostration. lbn Abbas (RA) said that he heard him repeat the words the man had conveyed to him from the tree.
[Ibn e Majah 1053]