The author - may Allah be pleased with him - said in what he related from Nu'man bin Basheer al-Ansaree (may Allah be pleased with them both) under the Chapter of Enjoining Good and Forbidding Evil, from the Prophet (ﷺ) who said, "The likeness of the man who observes Allah's prescribed limits and the one who violates them." The one who observes the limits is the steadfast upon Allah's Religion. He fulfills the obligations and abandons the prohibitions.
"...and the who violates them": meaning, Allah's stated limits. That is to say, the person who transgresses Allah's prohibitions and leaves the obligations, "are like a people on board a ship who drew lots." Meaning that, they casted lots to determine those who will occupy
the upper deck. "Some of them gained staying on the upper deck and others on the lower deck. Whenever those on the lower deck asked for water." Meaning, whenever they needed water to drink "they went to those above them", i.e., those on the upper deck owing to the fact that only those on the upper deck access to the water.
"So they thought, 'what if we dig our side'" i.e., we could drill a part of our deck and get water so that we stop causing inconvenience to those above us. That was what they presumed and wanted.
The Prophet ﷺ said: "If they are left to do what they wanted, they'll all perish" because if they made any hole at the lower deck of the ship, water will overrun the ship and wreck it. "But if they hold them back" and prevent them from that, "they will all be safe."
This illustration by the Prophet (ﷺ) has profound connotations and lessons. Concerning Allah's Religion, people are like those in the ship at the middle of the river. They will be tossed about by the waves; and if they are many in ship, some will necessarily be on the lower deck while others occupy the upper deck so that the ship may gain balance and overcrowding could be avoided.
Considering the fact that the ship was meant for all, if anyone of them attempts to vandalise it, restraining him becomes incumbent on the others for the safety of everyone. Otherwise, they will all perish. And that's Allah's religion; when the intelligent and the scholars restrain the unlearned and the insolent, they will all be saved. But if they leave them to do just whatever they like, then the consequence will all be destroyed as Allah – the Exalted – said,
"And fear the Fitnah (affliction and trial) which affects not in particular (only) those of you who do wrong, and know that Allah is severe in punishment." (Anfaal: 25)
This illustration contains evidence that it is essential for the teacher of a people to utilize illustrations by way of drawing concepts nearer as if they could see them with their eyes. Allah – the Exalted – says:
"And these similitudes We put forward for mankind; but none
will understand them except those who have knowledge (of Allah and His Signs).”
How many would you give detailed explanation on a matter, repeating the explanation to him and yet he would not understand; but an illustration is given he quickly discerns and comprehends it.
Consider the wondrous example the Prophet (ﷺ) gave a Bedouin, a nomad. He came to the Prophet – ﷺ – and said, “O Messenger of Allah, my wife has given birth to a child with dark complexion” – meaning –, I am fair, and likewise my wife, how could we then have a dark-complexioned boy?! Thereupon, the Prophet (ﷺ) asked, “Do you have camels?” The man answered, “Yes.” The Prophet (ﷺ) said, “What are their colors?” He said, “Red.” He – ﷺ – then said, “Is there any yellow among them?” That is, one with some whitish and dark colour. He said, “Yes.” The Prophet – peace and blessings be upon him – then said, “Then how come?” He said, “Perhaps due to gene mutation”; i.e., may be it had ancestors with that colour and the gene showed that. The Prophet (ﷺ) then remarked, “Perhaps the gene manifested in your son too.”(1)
Meaning that, one of his grandparents, uncles or fathers was dark and the boy resembled him. Hence, the Bedouin became satisfied. If the Prophet (ﷺ) had just explained (without illustration), this man is a nomad, he knows nothing. But he gave him an instance from his day-to-day activities and he became convinced and left.
In the same manner, the student of knowledge, and even the teacher should give the people easily-perceptible examples as the Prophet – ﷺ – did.
The hadeeth also evinces casting lots; it shows that it is permissible. Drawing lots has been mentioned in two places in the Qur’aan and in six places in the Sunnah of the Prophet (ﷺ). The first place in Allah’s Book was in Aal-Imraan:
“... You were not with them when they cast lots with their pens as to which of them should be charged with the care of Maryam; nor were you with them when they disputed.” [verse: 44].
Secondly in Soorah as-Saafaat:
“And verily Yunus was one of the Messengers. When he ran to the laden ship. Then he (agreed to) cast lots, and he was among the losers. Then a big (fish) swallowed him as he had done an act worthy of blame. Had he not been of them who glorify Allah. He would have indeed remained inside its belly till the Day of Resurrection.” (as-Safaat: 139-144)
Yoonus عليه السلام was one of the prophets, he boarded a ship with some people and things became difficult them. So they thought that, “If we all remain on the ship, we will all perish and the ship will capsize. Some of us should be dropped in the sea. But then, who do we drop; the first, the oldest or the weightiest passenger?”
So they drew lots and chose a group including Yoonus – on him be Allah’s peace and blessings - or on him alone, because the verse says, “then he (agreed to) cast lots, and he was among the losers.” So, he was not alone. They dropped him along with those with him – Allah knows best about them and what became of them.
As regard him, a big fish swallowed him, once without chewing him. So he ended up in the belly of the fish. He then called out from the darkness that:
“There is no deity (worthy of worship) except You, glory be to you, I am one of the unjust ones.”
Thereupon, the fish spat him out on the shore, and Allah – the Exalted - caused a gourd vine to grow over him. Scholars say it was a Najd gourd. It is soft and its leaves are like silk. One of its special qualities is that flies do not settle on it. Allah – the Mighty and Sublime - caused a gourd vine to grow over him so that he could nourish himself after he had stayed in the belly of the fish. That was how Allah – the Mighty and Sublime - saved him.
Therefore, casting lots is among the permissible things in the Sharee’ah according to the Qur’aan and the Sunnah. Ibn Rajab – may Allah shower blessings on him -, mentioned a Principle in his book, Al-Qawaaid ul-Fiqhiyyah (The Foundations of the Jurisprudence)
regarding the matters in which drawing lots are allowed and it covered the entirety of Islamic Jurisprudence.