The Messenger of Allah ﷺ said: After me you will be ruled by rulers who will delay the prayer and it will be to your credit but to their discredit. So pray with them so long as they pray facing the qiblah.
قَالَ رَسُولُ اللَّهِ ﷺ يَكُونُ عَلَيْكُمْ أُمَرَاءُ مِنْ بَعْدِي يُؤَخِّرُونَ الصَّلاَةَ فَهِيَ لَكُمْ وَهِيَ عَلَيْهِمْ فَصَلُّوا مَعَهُمْ مَا صَلَّوُا الْقِبْلَةَ