All will rule before Mahdi

حدثنا أحمد بن محمد بن سعيد قال: حدثنا علي بن الحسن، قال: حدثنا محمد بن عبد الله، عن محمد بن أبي عمير، عن هشام بن سالم، عن أبي عبد الله أنه قال: ما يكون هذا الأمر حتى لا يبقى صنف من الناس إلاّ وقد ولوا على الناس حتى لا يقول قائل "إنا لو ولينا لعدلنا" ثم يقوم القائم بالحق والعدل

Narrated that Abu Abdullah as-Sadiq (ع) said:

"This matter (i.e. appearance of Al-Qaim ع) will not take place untill every class of people will have ruled over people so that no one may say: "If we would have ruled, we would do justice", then al-Qaim ع will rise with truth and justice."

[Source: al-Ghaybah, Nomani, Pg. 280]