The ruler will impose whichever punishment he sees as being in the public interest, and this punishment will be given to everyone who robs people on the roads or in the cities when he intends to spread corruption in the land in this way.
In the verse of hirabah (waging war) it says:
أَن يُقَتَّلُوا أَوْ يُصَلَّبُوا أَوْ تُقَطَّعَ أَيْدِيهِمْ وَأَرْجُلُهُم مِّنْ خِلَافٍ أَوْ يُنفَوْا مِنَ الْأَرْضِ [Al-Ma’idah: 33]
“(Their punishment is that) they be killed, or crucified, or have their hands and feet cut off from opposite sides, or be banished from the land.”
In this verse the choice has been given to the Imam, and in the Imam’s absence someone who stands in his place may impose this punishment, because there is no indication in the Book and the Sunnah that turns it away from this.
From the apparent meaning of the verse it also emerges that the ruler of the time may choose only one of these punishments.
[Al-Rawdah al-Nadiyyah: 617/2 – 618]
There is a difference of opinion over whether the muharib is one who robs in the city or one who robs outside the city:
(Abu Hanifah, may Allah have mercy on him) Those who rob in the cities are not muharibun.
(Malik, may Allah have mercy on him) Two narrations are reported from him:
➊ When he is three miles or more away from the city he is a muharib, not at a shorter distance.
➋ There is no difference between inside the city and outside the city.
(Shafi’i, Abu Yusuf, may Allah have mercy on them) They prefer the second statement of Imam Malik, may Allah have mercy on him.
[Nayl al-Awtar: 614/4]
(The preponderant view) The Noble Quran has not placed any condition of city or non-city. Therefore, for the muharib, being present in the city or being outside the city is the same.
[Al-Sayl al-Jarrar: 370/4]
❀ When the muharibun are a group, there is a difference of opinion about their punishment:
(Shafi’i, may Allah have mercy on him) Each one will be punished according to his crime.
(Abu Hanifah, may Allah have mercy on him) All will be given an equal punishment.
[Nayl al-Awtar: 614/4]