If you are having bad thoughts in Salah or if you cannot concentrate then you are indeed facing a grave

المصدر: How to Gain Khushu in Salah | Science & Faith