It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) cursed the women who do (unlawful acts) in the graveyards, and also those who build mosques over graves and illuminate them.
Hadith Referenceمسند احمد / ومن مسند بني هاشم / 3118
Hadith Gradingحکم دارالسلام:حسن لغيره، دون قوله : والسرج وهذا إسناد ضعيف، أبو صالح باذام ضعيف عند الجمهور