Numan bin Bashir reported,

The Prophet ﷺ said, "The example of the one who upholds the limits set by Allah and the one who violates them is like a group of people who drew lots for places on a Safina. Some got the upper deck and others the lower deck. Those on the lower deck, whenever they wanted water, had to pass by those above them. So they said, 'What if we made a hole in our portion so we would not trouble those above us?' If those above leave them to do what they intend, all will perish together, but if they restrain their hands, they will be saved, and all will be saved together."

Bukhari 2493

Sahih

حدثنا أبو نعيم حدثنا زكرياء قال سمعت عامرا يقول سمعت

النعمان بن بشير رضي الله عنهما

عن النبي ﷺ قال مثل القائم على حدود الله والواقع فيها كمثل قوم استهموا على سفينة فأصاب بعضهم أعلاها وبعضهم أسفلها فكان الذين في أسفلها إذا استقوا من الماء مروا على من فوقهم فقالوا لو أنا خرقنا في نصيبنا خرقا ولم نؤذ من فوقنا فإن يتركوهم وما أرادوا هلكوا جميعا وإن أخذوا على أيديهم نجوا ونجوا جميعا

البخاري 2493صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Partnership
Chapter
Drawing lots in division and casting lots therein
Numbering
Darussalam 2493
Bukhari 2493