It is narrated from Sayyiduna Anas (may Allah be pleased with him) that a man said: "O Messenger of Allah! So-and-so has a date palm, and I am setting my wall straight by means of it, so order him to give it to me so that I can set my wall straight." The Prophet (peace and blessings be upon him) said to him (the owner of the tree): "Give it to him in exchange for a date palm in Paradise." But he refused. Then Sayyiduna Abu al-Dahdah (may Allah be pleased with him) came to him and said: "Sell me your date palm in exchange for my garden." And he did so. Then he came to the Prophet (peace and blessings be upon him) and said: "O Messenger of Allah! I have bought the date palm in exchange for my garden; now give it to him (the one in need), for I have given it to you." Then the Messenger of Allah (peace and blessings be upon him) said: "How many heavy, laden clusters of dates there are for Sayyiduna Abu al-Dahdah (may Allah be pleased with him) in Paradise!" He (peace and blessings be upon him) said this several times. The narrator said: Then he came to his wife and said: "O Umm al-Dahdah! Come out of this garden, for I have sold it in exchange for a date palm in Paradise." She said: "This has been a most profitable deal!" or a word similar to it.
These are the words of the narration of Hasan bin Musa (may Allah have mercy on him).
And the hadith of Abu Nasr (may Allah have mercy on him) is similar. The word "several times" is not in the narration of Ibn Mani' (may Allah have mercy on him), while it is present in the narration of Ali bin Abd al-Aziz (may Allah have mercy on him).
And Qadi Abu Ahmad Muhammad bin Ahmad al-Assal al-Asbahani (may Allah have mercy on him) narrated it in a similar way from Muhammad bin Ahmad bin al-Nadr, from Abu Nasr al-Tammar, from Hammad bin Salamah (may Allah have mercy on him).
And Abu Hatim Ibn Hibban al-Busti (may Allah have mercy on him) also narrated it in his book from Ahmad bin al-Hasan bin Abd al-Jabbar al-Sufi, from Abu Nasr al-Tammar (may Allah have mercy on him).