Sayyiduna Ubadah bin al-Samit (may Allah be pleased with him) narrates: We were with the Messenger of Allah (peace and blessings be upon him) when the people mentioned the rulers, and he (peace and blessings be upon him) said: "After me there will be rulers who will delay the prayer from its appointed time." We said: "O Messenger of Allah! Should we pray it with them?" He (peace and blessings be upon him) said: "Yes."
Muhammad bin Bashshar (may Allah have mercy on him) narrated this with the same chain and added in it: "And make your prayer with them a voluntary (nafl) prayer."