Abu Dharr reported,

The Messenger of Allah ﷺ said to me, "Abu Dharr, after me there will be rulers who let the prayer die. Pray the prayer at its proper time. If you pray it at its proper time, then praying again with them will count as a voluntary prayer for you, and if not, you will at least have secured your prayer."

Muslim 1466

Sahih

حدثنا يحيى بن يحيى أخبرنا جعفر بن سليمان عن أبي عمران الجوني عن عبد الله بن الصامت

عن أبي ذر قال

قال لي رسول الله ﷺ يا أبا ذر إنه سيكون بعدي أمراء يميتون الصلاة فصل الصلاة لوقتها فإن صليت لوقتها كانت لك نافلة وإلا كنت قد أحرزت صلاتك

مسلم 1466صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Mosques and places of prayer
Chapter
Disliking delaying prayer beyond its preferred time and what the follower should do if the imam delays it
Numbering
Darussalam 1466
Muslim 1466