Riyad as-Salihin 189: On Enjoining Good and Forbidding Evil
Nu‘man ibn Bashir relates that the Holy Prophet said: The case of those who observe the limits set by Allah and those who are careless about them is like passengers on a ship who cast lots to determine who should occupy the upper deck and who should be on the lower deck and disposed of themselves accordingly. Those who were on the lower deck passed through those of the upper deck whenever they had to fetch water. So they said to the occupants of the upper deck: If we were to bore a hole through our part, we would not then have to trouble you. Now, if the occupants of the upper deck were to leave the others to carry out their design they would all perish together; but if they were to stop them from carrying it out they would all be saved (Bokhari).