It is narrated from Sayyiduna Abu Dharr (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Visit the graves, for this will remind you of the Hereafter; wash the dead, for tending a lifeless body and carrying out its washing and shrouding is a most effective admonition; and offer the funeral prayer, so that perhaps this may bring tenderness and grief to your heart, for the grieving person is in the shade of Allah (His mercy) and becomes deserving of every kind of good." Imam al-Hakim recorded it, and al-Hafiz al-Mundhiri (may Allah have mercy on him) said that its narrators are thiqat (trustworthy).