"The Messenger of Allah ﷺ asked me: 'How will you act, Abu Dharr, when you are under rulers who kill prayer or delay it (beyond its proper time) ?' I said: 'Messenger of Allah, what do you command me ?' He replied: 'Offer the prayer at its proper time, and if you say it along with them, say it, for it will be a supererogatory prayer for you.'" (Using translation from Abū Dāʾūd 431)
قَالَ لِي رَسُولُ اللهِ ﷺ كَيْفَ أَنْتَ إِذَا كَانَ عَلَيْكَ أُمَرَاءُ يُؤَخِّرُونَ الصَّلَاةَ عَنْ وَقْتِهَا؟ أَوْ قَالَ يُمِيتُونَ الصَّلَاةَ عَنْ وَقْتِهَا قَالَ قُلْتُ فَمَا تَأْمُرُنِي؟ قَالَ صَلِّ الصَّلَاةَ لِوَقْتِهَا فَإِنْ أَدْرَكْتَهَا مَعَهُمْ فَصَلِّ؛ فَإِنَّهَا لَكَ نَافِلَةٌ