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مسند احمد / ومن مسند بني هاشم / 2603
Hadith Gradingحکم دارالسلام:حسن لغيره، دون ذكر السرج، وهذا إسناد ضعيف لضعف أبى صالح