Nu'man bin Bashir (May Allah be pleased with him) reported:
The Prophet (ﷺ) said, "The likeness of the man who observes the limits prescribed by Allah and that of the man who transgresses them is like the people who get on board a ship after casting lots. Some of them are in its lower deck and some of them in its upper (deck). Those who are in its lower (deck), when they require water, go to the occupants of the upper deck, and say to them : 'If we make a hole in the bottom of the ship, we shall not harm you.' If they (the occupants of the upper deck) leave them to carry out their design they all will be drowned. But if they do not let them go ahead (with their plan), all of them will remain safe".[Al- Bukhari].
Arabic/English book reference: Book 1, Hadith 187