It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "Indeed, after me there will soon be rulers and imams who will be steeped in sin and wrongdoing; they will offer the prayer away from its proper (preferred and Sunnah) time (by delaying it). So when they adopt such a course, offer the prayer at its correct time, and make the prayer offered with them (again in congregation) a voluntary prayer for yourselves."
Imam Abu Ya'la recorded this hadith, and its supporting witnesses are found in Sahih Muslim; this report is sahih by virtue of its supporting witnesses.
Hadith Referenceالمطالب العالية بزوائد المسانيد الثمانية / كتاب الصلاة / 274
Hadith Gradingمحدثین:إسناده حسن، موقوف
Hadith Takhrij«حکم الحدیث المطالب العالیہ محققاً تنسیق د. سعد بن ناصر بن عبد العزيز الشَّثري- مکتبہ شاملہ :موقوف، إسناده حسن. » «أخرجه المعجم الأوسط للطبراني برقم: 8840، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 1826، وأخرجه إتحاف الخيرة المهرة بزوائد المسانيد العشرة برقم: 853»