It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that a man came to the Prophet (peace and blessings be upon him) and said: "O Messenger of Allah, tonight I saw in a dream that I was praying near a tree, and it was as if I recited Surah al-Sajdah (a surah containing a verse of prostration) and prostrated, and I saw that the tree also prostrated along with my prostration, and I was hearing it supplicate: 'O Allah, in return for this prostration, write a reward for me with You, remove from me through it the burden of sin, make it a treasure for me with You, and accept it from me as You accepted it from Your servant Dawud (peace be upon him).'" Sayyiduna Ibn Abbas (may Allah be pleased with them both) said: Then the Messenger of Allah (peace and blessings be upon him) recited the verse of prostration (and prostrated), and I heard him (peace and blessings be upon him) recite in his prostration the same supplication that the man had reported as the words of the tree.
Imam al-Tirmidhi (may Allah have mercy on him) narrated it from Qutaybah bin Sa'id, from Muhammad bin Yazid bin Khunays, from al-Hasan bin Muhammad bin Ubaydullah bin Abi Yazid, who said: Ibn Jurayj (may Allah have mercy on him) said to me: "O Hasan, Ubaydullah bin Abi Yazid (may Allah have mercy on him) told me from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that a man came to the Prophet (peace and blessings be upon him) and said: 'O Messenger of Allah, tonight I saw in my sleep that I was praying behind a tree. I prostrated, and the tree also prostrated along with my prostration, and I heard it saying: "O Allah, in return for it write a reward for me with You, lighten from me through it the burden of sin, make it a treasure for me with You, and accept it from me as You accepted it from Your servant Dawud (peace be upon him)."'"
Al-Hasan (may Allah have mercy on him) said: Ibn Jurayj (may Allah have mercy on him) said to me that your grandfather said to me that Sayyiduna Ibn Abbas (may Allah be pleased with them both) said: "The Prophet (peace and blessings be upon him) recited a verse of prostration and then prostrated, and I heard him (peace and blessings be upon him) say the same as what that man had reported as the words of the tree."
Imam al-Tirmidhi (may Allah have mercy on him) said: "This hadith is gharib as a narration of Ibn Abbas (may Allah be pleased with them both); we know it only through this chain."
And Abu Hatim al-Busti (may Allah have mercy on him) narrated it from Ibn Khuzaymah, from al-Hasan bin Muhammad bin al-Sabbah, from Muhammad bin Yazid bin Khunays, with a similar meaning.
In the narration of Nasr bin Ali it reads "Muhammad bin al-Hasan bin Ubaydullah," whereas the correct name is "al-Hasan bin Muhammad."
And the narration of Muhammad bin Sulayman bin al-Harith (I think he is al-Baghandi) we have recorded by way of corroboration (i'tibar).
Related hadith on this topic
Explanation & Benefits
Shaykh Dr. Abdur Rahman Freywai
Explanation:
1:
O Allah! In exchange for this, record for me reward and recompense with You, and in return, remove from me the burden (of sins), and make it a treasure for me with You (for the Hereafter), and accept it from me just as You accepted it from Your servant Dawud (alayhis salam).
2:
Various methods were adopted by Allah for conveying rulings and issues. One such method was that Allah would show a dream to a Companion (Sahabi), in which an angel would inform him of a particular issue, and when that Companion awoke, he would mention it to the Messenger of Allah (sallallahu alayhi wa sallam), and the Prophet (sallallahu alayhi wa sallam) would affirm (confirm) it, as occurred in the matter of the adhan (call to prayer).
Source: Sunan al-Tirmidhi – Majlis ‘Ilmi Dar al-Da‘wah, New Delhi Edition, Page: 3424