It is narrated from Sayyiduna Abdullah bin Amr bin al-As (may Allah be pleased with them both) that he said: "We were in the presence of the Messenger of Allah (peace and blessings be upon him) when he (peace and blessings be upon him) said: 'After me there will soon be rulers who will delay the prayer from its (recommended) time.' I said: 'O Messenger of Allah, what should the one who lives to see them do?' He (peace and blessings be upon him) said: 'Offer the prayer at its (proper) time, and then if you are present with them at the time of prayer, pray (with them as well).'"
Hadith Referenceالمعجم الأوسط / باب الألف / 958
Hadith Gradingمحدثین:فيه سالم بن عبد الله الخياط مختلف فيه
Hadith Takhrij«قال الهيثمي: فيه سالم بن عبد الله الخياط ضعفه ابن معين والنسائي ووثقه أحمد وابن حبان وأبو أحمد بن عدي «مجمع الزوائد ومنبع الفوائد، ج 1، ص 325»» «أخرجه الطبراني فى «الكبير» برقم: 14538»