Sayyiduna Abu Dharr (may Allah be pleased with him) narrates that the Prophet (peace and blessings be upon him) said: "Soon there will be rulers over you who will not lead the prayer at its proper time. Take heed! Offer the prayer at its proper time, then come to them. If they have already prayed, you have already offered your prayer; and if they have not prayed, pray with them, and it will be a voluntary prayer for you."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 3643