Sulaiman bin Buraidah narrated from his father that: The Messenger of Allah said: "I had prohibited you from visiting the graves. But Muhammad was permitted to visit the grave of his mother: so visit them, for they will remind you of the Hereafter"
SahihSahihHasan SahihBook 10 · Hadith 90