Hadith.531 - Sama’a ibn Mehran asked Imam Jafar ibn Muhammad Al-Sadiq عليه السلام about visiting graves and building mosques around them.
Imam عليه السلام replied: "There is no issue with visiting graves, but no mosques should be built around them."