The ruler of the time should decide with the counsel of the shura (consultative council)
➊ Allah, the Exalted, says:
وَشَاوِرْهُمْ فِي الْأَمْرِ [Al Imran: 159]
“Consult them in matters.”
➋ وَأَمْرُهُمْ شُورَىٰ بَيْنَهُمْ [Al-Shura: 38]
“Their (every) affair is conducted by mutual consultation.”
➌ It is established that the Messenger of Allah ﷺ consulted the Companions on various occasions, for example:
① Before the Battle of Badr
② Concerning the prisoners of Badr
③ Before the Battle of Uhud (whether to go out of Madinah or not)
④ In the incident of the slander (Ifk)
⑤ Concerning the return of the captive women and children of Banu Hawazin.
Then the caliphs also continued to follow this approach.
[Al-Fiqh al-Islami wa Adillatuhu: 6201/8, Tafsir Ibn Kathir: 287/1, Adab al-Dunya wa al-Din by al-Mawardi: p. 496, Sirat Ibn Hisham: 253/2, Ahkam al-Quran by al-Jassas: 40/2, Tafsir al-Alusi: 107/4]