1757/1 - Abu Marthad Kannāz ibn al-Husayn (may Allah be pleased with him) reported that he heard the Prophet (may Allah’s peace and blessings be upon him) say: “Do not pray facing graves and do not sit on them.” [Narrated by Muslim]
1) It is prohibited to pray facing the graves or sit on them.
2) It is not permissible to extol the graves and turn them into places of worship, for this is a path to polytheism. It is also not permissible to insult and debase them, as Muslims enjoy inviolability while alive or dead. So, we should not go to extremes or fall into negligence. Indeed, the religion of Allah lies in the middle between two extremes, a truth between two falsehoods, and a guidance between two ways of misguidance.