عَنْ أَنَسِ بْنِ مَالِكٍ رَضِيَ اللَّهُ عَنْهُ، قَالَ: كَانَ مَوْضِعُ مَسْجِدِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ لِبَنِي النَّجَّارِ، وَكَانَ فِيهِ نَخْلٌ وَقُبُورُ الْمُشْرِكِينَ، فَقَالَ لَهُمُ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ: ”ثَامِنُونِي بِهِ“، فَقَالُوا: لَا نَأْخُذُ لَهُ ثَمَنًا، وَكَانَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ يَبْنِيهِ وَهُمْ يُنَاوِلُونَهُ وَهُوَ يَقُولُ: ”أَلَا إِنَّ الْعَيْشَ عَيْشُ الْآخِرَةْ، فَاغْفِرْ لِلْأَنْصَارِ وَالْمُهَاجِرَةْ“، قَالَ: وَكَانَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ يُصَلِّي قَبْلَ أَنْ يُبْنَى الْمَسْجِدُ حَيْثُ أَدْرَكَتْهُ الصَّلَاةُ
It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that the place of Masjid Nabawi was owned by Banu Najjar. There were date palm trees and graves of polytheists in it. The Noble Prophet (peace and blessings be upon him) said to them: "Set a price for this plot with me." They said: "We will not take its price." And when the Noble Prophet (peace and blessings be upon him) was constructing it, and those people were handing things to him for the construction, at that time the Noble Prophet (peace and blessings be upon him) was reciting these verses: "Behold! The real life is the life of the Hereafter, so forgive the Ansar and the Muhajirin." Before the construction of Masjid Nabawi, whenever the time for prayer would come, the Noble Prophet (peace and blessings be upon him) would perform the prayer wherever he was.