Zayd bin Aslam (may Allah have mercy on him) reports from his father that Sayyiduna Umar (may Allah be pleased with him) said at the time of his death that the people will remain upon good as long as their rulers and their guides remain upright for them.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب قتال أهل البغي / 16651