The Messenger of Allah ﷺ cursed women who frequently visit graves, those who build mosques over them, and those who place lamps upon them.
حدثنا قتيبة حدثنا عبد الوارث بن سعيد عن محمد بن جحادة عن أبي صالح
لعن رسول الله ﷺ زائرات القبور والمتخذين عليها المساجد والسرج
Its chain is daif. Nasai also narrated it in 5/95, no. 2045, from Qutayba with the same chain. Ibn Majah narrated it, no. 1575, from the hadith of Abdul-Warith, and Abu Dawud narrated it, no. 3236, from the hadith of Muhammad bin Jahada, with the same chain, with the wording "with kohl." Abu Salih, the freed slave of Umm Hani, is daif and a mudallis (as stated in Taqrib), and he narrated this hadith after he had grown old, that is, after his memory had become confused.On this subject there is also a report from Abu Hurairah [coming up, no. 1056] and from Ayesha [Bukhari, no. 1330, and Muslim, no. 529].