Ibn ‘Abbas told of a man coming to God’s Messenger and saying, “Messenger of God, it seemed to me last night when I was asleep as if I were praying behind a tree. I prostrated myself, the tree prostrating itself at the same time, and I heard it say, ‘O God, record a reward for me for it, remit from me a load for it, make it a treasure with Thee for me, and accept it from me as Thou didst accept it from Thy servant David’.” Ibn ‘Abbas said:The Prophet thereupon recited a verse at which a prostration should be made, then prostrated himself, and I heard him saying the words the man told him the tree had said. Tirmidhi and Ibn Majah transmitted it, but Ibn Majah did not mention, "and accept it from me as Thou didst accept it from Thy servant David.” Tirmidhi said this is a gharib tradition.
Hadith Referenceمشكوة المصابيح / كتاب الصلاة / 1036
Hadith Gradingالألبانی:ضَعِيف | زبیر علی زئی:إسناده حسن
Hadith Takhrij´تحقيق و تخريج: محدث العصر حافظ زبير على زئي رحمه الله` «إسناده حسن، رواه الترمذي (579) و ابن ماجه (1053) [و صححه ابن خزيمة (562) و ابن حبان (691) والحاکم (1/ 219، 220) ووافقه الذهبي. ]»