Sayyiduna Abdullah bin Amr (may Allah be pleased with him) narrates: We were with the Prophet (peace and blessings be upon him), and he said: "Soon after me there will be rulers who will delay the prayer." I said: "O Messenger of Allah! What should a person who lives in their time do?" The Prophet (peace and blessings be upon him) said: "Offer the prayer at its proper time, and if you are present with them at their prayer, then offer the prayer (with them)."
Al-Tabarani recorded it in al-Awsat and al-Kabir; its chain contains a narrator, Salim bin Abdullah al-Khayyat, whom Yahya bin Ma'in and al-Nasa'i (may Allah have mercy on him) declared da'if (weak), while Ahmad, Ibn Hibban and Abu Ahmad bin Adi declared him thiqah (trustworthy).
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الصلاة / 1825