Mishkat al-Masabih 600
وَعَنْ أَبِي ذَرٍّ قَالَ: قَالَ لِي رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: كَيْفَ أَنْتَ إِذَا كَانَتْ عَلَيْكَ أُمَرَاءُ يُمِيتُونَ الصَّلَاةَ أَوْ قَالَ: يُؤَخِّرُونَ الصَّلَاةَ عَنْ وَقْتِهَا؟ قُلْتُ: فَمَا تَأْمُرُنِي؟ قَالَ: صَلِّ الصَّلَاةَ لِوَقْتِهَا فَإِنْ أَدْرَكْتَهَا مَعَهُمْ فَصَلِّ فَإِنَّهَا لَك نَافِلَة. رَوَاهُ مُسلم
And from Abu Dharr, who said: The Messenger of Allah ﷺ said to me: "How will you be when you have rulers over you who kill the prayer" — or he said: "who delay the prayer from its time?" I said: "So what do you command me?" He said: "Pray the prayer at its time, and if you catch it with them, then pray, for it will be a voluntary prayer for you." Reported by Muslim.