Abu Dharr reported,

The Prophet ﷺ said, "Abu Dharr, there will be rulers after me who will let the prayer die. So pray the prayer at its proper time. If you pray it at its proper time, then whatever you pray with them will count as a voluntary prayer for you. Otherwise, you will have at least secured your prayer."

Tirmidhi 176

Sahih

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

عن أبي ذر قال

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

الترمذي 176صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Prayer
Chapter
Hastening the prayer when the imam delays it
Numbering
Darussalam 176
Tirmidhi 176