Hadithcore
Sahih al-Bukhari, 428
sahih

Narrated Anas:

When the Prophet (ﷺ) arrived Medina he dismounted at `Awali-i-Medina amongst a tribe called Banu `Amr bin `Auf. He stayed there For fourteen nights. Then he sent for Bani An-Najjar and they came armed with their swords. As if I am looking (just now) as the Prophet (ﷺ) was sitting over his Rahila (Mount) with Abu Bakr riding behind him and all Banu An-Najjar around him till he dismounted at the courtyard of Abu Aiyub's house. The Prophet (ﷺ) loved to pray wherever the time for the prayer was due even at sheep-folds. Later on he ordered that a mosque should be built and sent for some people of Banu-An-Najjar and said, "O Banu An-Najjar! Suggest to me the price of this (walled) piece of land of yours." They replied, "No! By Allah! We do not demand its price except from Allah." Anas added: There were graves of pagans in it and some of it was unleveled and there were some date-palm trees in it. The Prophet (ﷺ) ordered that the graves of the pagans be dug out and the unleveled land be level led and the date-palm trees be cut down . (So all that was done). They aligned these cut date-palm trees towards the Qibla of the mosque (as a wall) and they also built two stone side-walls (of the mosque). His companions brought the stones while reciting some poetic verses. The Prophet (ﷺ) was with them and he kept on saying, "There is no goodness except that of the Hereafter, O Allah! So please forgive the Ansars and the emigrants. "

حَدَّثَنَا مُسَدَّدٌ، قَالَ حَدَّثَنَا عَبْدُ الْوَارِثِ، عَنْ أَبِي التَّيَّاحِ، عَنْ أَنَسٍ، قَالَ قَدِمَ النَّبِيُّ صلى الله عليه وسلم الْمَدِينَةَ فَنَزَلَ أَعْلَى الْمَدِينَةِ، فِي حَىٍّ يُقَالُ لَهُمْ بَنُو عَمْرِو بْنِ عَوْفٍ‏.‏ فَأَقَامَ النَّبِيُّ صلى الله عليه وسلم فِيهِمْ أَرْبَعَ عَشْرَةَ لَيْلَةً، ثُمَّ أَرْسَلَ إِلَى بَنِي النَّجَّارِ فَجَاءُوا مُتَقَلِّدِي السُّيُوفِ، كَأَنِّي أَنْظُرُ إِلَى النَّبِيِّ صلى الله عليه وسلم عَلَى رَاحِلَتِهِ، وَأَبُو بَكْرٍ رِدْفُهُ، وَمَلأُ بَنِي النَّجَّارِ حَوْلَهُ، حَتَّى أَلْقَى بِفِنَاءِ أَبِي أَيُّوبَ، وَكَانَ يُحِبُّ أَنْ يُصَلِّيَ حَيْثُ أَدْرَكَتْهُ الصَّلاَةُ، وَيُصَلِّي فِي مَرَابِضِ الْغَنَمِ، وَأَنَّهُ أَمَرَ بِبِنَاءِ الْمَسْجِدِ، فَأَرْسَلَ إِلَى مَلإٍ مِنْ بَنِي النَّجَّارِ فَقَالَ ‏"‏ يَا بَنِي النَّجَّارِ ثَامِنُونِي بِحَائِطِكُمْ هَذَا ‏"‏‏.‏ قَالُوا لاَ وَاللَّهِ، لاَ نَطْلُبُ ثَمَنَهُ إِلاَّ إِلَى اللَّهِ‏.‏ فَقَالَ أَنَسٌ فَكَانَ فِيهِ مَا أَقُولُ لَكُمْ، قُبُورُ الْمُشْرِكِينَ، وَفِيهِ خَرِبٌ، وَفِيهِ نَخْلٌ، فَأَمَرَ النَّبِيُّ صلى الله عليه وسلم بِقُبُورِ الْمُشْرِكِينَ فَنُبِشَتْ، ثُمَّ بِالْخَرِبِ فَسُوِّيَتْ، وَبِالنَّخْلِ فَقُطِعَ، فَصَفُّوا النَّخْلَ قِبْلَةَ الْمَسْجِدِ، وَجَعَلُوا عِضَادَتَيْهِ الْحِجَارَةَ، وَجَعَلُوا يَنْقُلُونَ الصَّخْرَ، وَهُمْ يَرْتَجِزُونَ، وَالنَّبِيُّ صلى الله عليه وسلم مَعَهُمْ وَهُوَ يَقُولُ ‏"‏ اللَّهُمَّ لاَ خَيْرَ إِلاَّ خَيْرُ الآخِرَهْ فَاغْفِرْ لِلأَنْصَارِ وَالْمُهَاجِرَهْ ‏"‏

References2 variants
In-Book Reference
Book 8, Hadith 78
USC-MSA web (English) reference
Vol. 1, Book 8, Hadith 420 (deprecated numbering scheme)
Sharh · explanationclick to expand
The migration from Makkah to Madinah took place by the command of Allah to His Prophet (blessings and peace of Allah be upon him). That was the beginning of a new stage in the da‘wah (call) and the spread of Islam. In this hadith, Anas ibn Malik (may Allah be pleased with him) narrates that when the Prophet (blessings and peace of Allah be upon him) migrated to Madinah, he halted and stayed in A‘la al-Madinah, which is an area also known as al-‘Awali and al-‘Aliyah. This refers to Quba’ and its environs. Quba’ was the land of Banu ‘Amr ibn ‘Awf. It was also said that everything on the side of Madinah in the direction of Najd, of villages and populated areas as far as Tihamah, is called al-‘Aliyah, and everything other than that is called al-Safilah. The Prophet (blessings and peace of Allah be upon him) stayed with them for fourteen days, then he sent for his maternal uncles, Banul Najjar. They came with their swords on their shoulders, as was their custom when they went to meet one of their prominent figures; or it may be that they came in this manner because they feared that the Jews might harm the Prophet (blessings and peace of Allah be upon him), and this was a display of their support for the Prophet (blessings and peace of Allah be upon him). The Prophet’s intention was to move from al-‘Awali to the centre of Madinah and find a place to settle there. So he rode his she-camel, and Abu Bakr (may Allah be pleased with him) rode behind him, which is indicative of the honourable and unique status of Abu Bakr (may Allah be pleased with him), which none of the other companions shared with him. The men of Banul Najjar, their bravest fighters and nobles, surrounded him, and the Prophet (blessings and peace of Allah be upon him) rode until he dismounted and unloaded his luggage in the courtyard of Abu Ayyub al-Ansari (may Allah be pleased with him), who was one of Banul Najjar. The Prophet (blessings and peace of Allah be upon him) liked to pray wherever he was when the time for prayer came, to show that the entire earth had been made a place of prostration and a means of purification for him. He would pray in sheepfolds, which are enclosures to which the sheep go to sleep, rest and spend the night. This was a concession granted by the Prophet (blessings and peace of Allah be upon him), allowing people to pray in the places where sheep gathered, because sheep are peaceful animals that do not harm anyone, and there is blessing in them because they are so peaceful and gentle, and do not move very much, in addition to other benefits. The Prophet (blessings and peace of Allah be upon him) wanted to build the mosque on the site of a garden belonging to some of Banul Najjar, so he sent word to them and said to them: Name your price for your garden; tell me how much you want for it, so that I can buy it from you. But they swore by Allah that they would seek the reward for that with Allah (may He be glorified and exalted), and they did not want any money for it. In this place there were some old graves of the polytheists, a ruin and some palm trees, so the Prophet (blessings and peace of Allah be upon him) issued orders that the graves of the polytheists be dug up, and the bones and remains be removed to another place. The ruin, in which there were holes, stones, cracks and the like, was to be leveled. It was said that what was meant by levelling the ruin is that the ruined building that is to be demolished will result in piles of rubble on the ground, so there is a need to remove that rubble, then make the ground level. And he issued orders that the palm trees be cut down, then the trunks of the felled trees were lined up to form a wall in the direction of the qiblah of the mosque. They made two other supporting walls of stone; the word translated here as supporting wall refers to anything that supports a structure around it. It is as if they put stones around the wall made of palm trunks. As they worked, they were reciting lines of rajaz verse, like chanting; rajaz is a type of rhythmic speech, like poetry. They did that to energize themselves and make the work go more smoothly. The Prophet (blessings and peace of Allah be upon him) was reciting lines of rajaz verse with them, and saying: “O Allah, there is no good except the good of the hereafter”, meaning that true goodness is the bliss of the hereafter, because it is eternal, and everything else is temporary; “have mercy on the Ansar and the Muhajirin” – this was a supplication for forgiveness for them. The Ansar were [the tribes of] al-Aws and al-Khazraj who supported him against his enemies, and the Muhajirin were those who migrated from Makkah to Madinah. There was an issue regarding how to understand the report that the Prophet (blessings and peace of Allah be upon him) recited lines of rajaz verse when Allah (may He be exalted) says: {And We did not give Prophet Muhammad, knowledge of poetry} [Ya-Sin 36:69]. The response to that is that what was not possible for him was to compose poetry of his own; it does not refer to him reciting poetry composed by others. It was not something that he did deliberately, and it was never proven that he composed poetry of his own. This hadith indicates that it is permissible to recite poetry and rajaz verse when working and when on a military campaign, and to use that as a means to energize people and make the work go more smoothly. It indicates that the one who owns something has more right to name its price. It indicates that if a graveyard is dug up and the bones of the dead are removed, then it is no longer regarded as a graveyard, and it is permissible to pray there. It indicates that one should not pray in graveyards, even if they are the graveyards of the polytheists, because that is barring a means that may lead to taking graves as places of worship, because with the passage of time people will forget what the situation was, and there is the fear that it may lead to fitnah and going astray. It indicates that the graves of the polytheists have no sanctity, and that it is permissible to exhume their bones and remove them from that place, in order to make use of the land, if there is a need for that. It indicates that it is permissible to cut down palm trees and other trees, if that serves the public interest. .
Related hadiths5
Compare isnād across 5 related chains →