Is it permissible to pray Salah in a graveyard?
Normally in a graveyard a lot of things may be affected by najasah (filth), but if there nothing najas then it is permissible to perform Salah there. Most scholars suggest avoiding prayer in such places. It is impermissible to pray with a grave in front of you.
And Allah ﷻ knows the best
Imam Ahmad Rida Khan رحمة الله تعالى عليه
Translation by Dr Musharraf Hussain Al-Azhari Translator of Majestic Quran, www.majesticquran.co.uk