Sayyiduna Abu Sa‘id Khudri (may Allah be pleased with him) said: The Messenger of Allah (peace and blessings be upon him) said: “The entire earth is a place of prostration (mosque) except for graveyards and bathhouses.” (That is, it is not permissible to pray in graveyards and bathhouses.) Imam Darimi (may Allah have mercy on him) was asked: If someone prays in a graveyard, will his prayer be valid? He replied: If he prayed in a place where there was no grave, then the prayer will be valid, and he said: Most narrators have reported this hadith as mursal.