Ibn Maja has related with his chain of authorities that the Prophet said...
Ibn Maja has related with his chain of authorities that the Prophet said: 'Visit graves, for they will remind you of the Hereafter.'[^2] He also reported with his chain of authorities that A'isha said that the Prophet allowed the visit to graves… He also reported with his chain of authorities that the Prophet said: 'I used to forbid you to visit graves but now visit them, for they will make you abstain from the world and remind you of the Hereafter.' Muslim has reported the first part of the above tradition up to the words 'but now visit them.'[^3] Al-Nasa'i has reported it in a slightly variant form: 'I forbade you from visiting graves but now let whoever wants to visit them, do so.' The Prophet visited the grave of his mother.
Muslim has reported in his Sahih as has Ibn Maja and al-Nasa'i, with their chain of authorities, that Abu Hurayra said: 'The Prophet visited the grave of his mother. He wept and it made those around him weep.’[^4] Muslim has reported that whenever the Prophet used to spend the night with 'A'isha he used to go out, last thing at night, to the cemetery of al-Baqi' and say: 'Peace be with you, abode of people who believe.
What you were promised has come to you.' He taught 'A'isha when she asked him: 'How should I address them, Apostle of God?' He said, 'Say: Peace be with the people of the place who are believers and Muslims.' This tradition is reported by Muslim. Ibn Abi Shayba has reported from Abu Ja'far (i.e., Imam Muhammad al-Baqir) in Wafa ' al-Wafa' that Fatima, daughter of the Apostle of God, used to visit the grave of Hamza.
She repaired it and improved it, and she marked it with a stone.[^5] It is reported on the authority of the former (i.e. Muhammad al-Baqir) that Fatima used to visit the graves of the martyrs every two or three days until she died. Al-Hakim has reported on the authority of'Ali' that Fatima used to visit the grave of her uncle, Hamza, every week. There she would perform the salat, pray and weep.
* * * When 'Umar made peace with Jerusalem, during the conquest of Syria, and Ka'b al-Ahbar came to him and submitted to Islam, 'Umar was delighted with his acceptance of Islam and said to him: 'Would you come with me to Medina, visit the Prophet's tomb and enjoy seeing it?' 'Yes,' he replied. When he returned to Medina from the conquest of Syria, the first thing he did was to go to the mosque and pray for peace to be with the Apostle of God.