It is narrated from Sayyiduna Amir bin Rabi'ah (may Allah be pleased with him) that the Messenger of Allah (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 beyond its time; pray along with them. If they pray it on time and you pray it with them, the reward is for you and for them. 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)."
These are the words of Abd al-Razzaq's narration.
And the words of Hajjaj's narration are: Asim bin Ubaydullah (may Allah have mercy on him) narrated that the Prophet (peace and blessings be upon him) said: "After me there will be rulers who will pray the prayer outside its time and delay it beyond its time; 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 pray it outside 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 dies the death of Jahiliyyah, 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 (Asim, may Allah have mercy on him): "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)."