It is narrated from Sayyiduna Hassan bin Thabit (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) "cursed the women who frequently visit graves."