Allaah (The Most High) said:
وَجَعَلْنَا مِنْهُمْ أَئِمَّةً يَهْدُونَ بِأَمْرِنَا لَمَّا صَبَرُوا ۖ وَكَانُوا بِآيَاتِنَا يُوقِنُونَ
And We made from among them (Children of Israel), leaders, giving guidance under Our Command, when they were patient and used to believe with certainty in Our Ayat (proofs, evidences, verses, lessons, signs, revelations, etc.).” [Sajdah: Ayah:24]
Imaam Ibnul Qayyim (rahimahullaah) said:
So He (Allaah) informed (us) that (upright) leadership in the religion is obtained through patience and certainty. Patience repels lowly desires and corrupt wishes, and certainty repels doubts and (those) affairs that resemble the truth but are falsehood in reality.
[Badaa’i At-Tafseer Al-Jaami Limaa Fassarahu Al-Imaam Ibnu Qayyim Al-Jawziyyah: page:323 Vol:2. slightly paraphrased]