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.