Sayyiduna Abdullah bin Amr (may Allah be pleased with him) said: "Prayer shall not be performed facing a grave."