It is narrated from Asim bin Ubaydullah (may Allah have mercy on him) that the Prophet (peace and blessings be upon him) said: "After me there will be rulers who will sometimes pray the prayer on time and sometimes delay it; pray along with them. If they pray it on time and you pray it with them, you will have the reward and so will they; and if they delay it beyond its time and you pray it with them, the reward is for you and the sin is upon them. Whoever separates from the Jama'ah (the community) dies the death of Jahiliyyah (pre-Islamic ignorance), and whoever breaks the covenant and then dies in the state of having broken the covenant will come on the Day of Resurrection with no argument (in his favour)." Ibn Jurayj (may Allah have mercy on him) said: I asked: "Who told you this report?" He said: "Abdullah bin Amir bin Rabi'ah (may Allah have mercy on him) told me, from his father Sayyiduna Amir bin Rabi'ah (may Allah be pleased with him), who reported it from the Prophet (peace and blessings be upon him)."
Yahya bin Sa'id and Abu Asim (may Allah have mercy on them both) narrated it from Ibn Jurayj (may Allah have mercy on him).
And Imam Ahmad (may Allah have mercy on him) also narrated it from Abd al-Razzaq, and the rest of its chain is at its end, just as in this narration.