عَنِ ابْنِ عَبَّاسٍ رَضِيَ اللَّهُ عَنْهُمَا قَالَ: لَعَنَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ زَائِرَاتِ الْقُبُورِ وَالْمُتَّخِذِينَ عَلَيْهَا الْمَسَاجِدَ وَالسُّرُجَ
It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both), he says that the Messenger of Allah (peace and blessings be upon him and his family) cursed the women who visit graves, those who make graves places of prostration, and those who light lamps upon graves.