[Machine] The location of the mosque of the Prophet ﷺ used to belong to the Bani Najjar tribe. It had palm trees, cultivated land, and graves from the time of ignorance. The Messenger of Allah ﷺ desired to purchase it from them, so he asked them, but they said, "We do not wish for any price except with Allah." So the Messenger of Allah ﷺ commanded the palm trees to be cut, the cultivated land to be destroyed, and the graves to be dug up. Before that, the Messenger of Allah ﷺ used to pray in the sheep pens, where the prayer caught up with him.
كَانَ مَوْضِعُ مَسْجِدِ النَّبِيِّ ﷺ لِبَنِي النَّجَّارِ وَكَانَ فِيهِ نَخْلٌ وَحَرْثٌ وَقُبُورٌ مِنْ قُبُورِ الْجَاهِلِيَّةِ فَقَالَ لَهُمْ رَسُولُ اللهِ ﷺ ثَامِنُونِي فَقَالُوا لَا نَبْتَغِي بِهِ ثَمَنًا إِلَّا عِنْدَ اللهِ ﷻ فَأَمَرَ رَسُولُ اللهِ ﷺ بِالنَّخْلِ فَقُطِعَ وَبِالْحَرْثِ فَأُفْسِدَ وَبِالْقُبُورِ فَنُبِشَتْ وَكَانَ رَسُولُ اللهِ ﷺ قَبْلَ ذَلِكَ يُصَلِّيفِي مَرَابِضِ الْغَنَمِ حَيْثُ أَدْرَكَتْهُ الصَّلَاةُ