Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ahmad:22737al-Walīd > Ibn Thawbān Laʿallah ʿAbd al-Raḥman b. Thābit b. Thawbān > ʿUmayr b. Hāniʾ > Junādah b. Abū Umayyah > ʿUbādah b. al-Ṣāmit

[Machine] From the Messenger of Allah ﷺ. Similar to that, he said, "As long as they do not command you to sin openly."  

أحمد:٢٢٧٣٧حَدَّثَنَا الْوَلِيدُ قَالَ حَدَّثَنِي ابْنُ ثَوْبَانَ لَعَلَّهُ عَبْدُ الرَّحْمَنِ بْنُ ثَابِتِ بْنِ ثَوْبَانَ عَنْ عُمَيْرِ بْنِ هَانِئٍ حَدَّثَهُ عَنْ جُنَادَةَ بْنِ أَبِي أُمَيَّةَ عَنْ عُبَادَةَ بْنِ الصَّامِتِ

عَنْ رَسُولِ اللهِ ﷺ مِثْلَ ذَلِكَ قَالَ مَا لَمْ يَأْمُرُوكَ بِإِثْمٍ بَوَاحًا  


See similar narrations below:

Collected by Aḥmad
ahmad:15640Ḥajjāj > Layth > Zabbān b. Fāʾid > Ibn Muʿādh b. Anas from his father

A similar report was narrated from 'Aishah from the Messenger of Allah. (Using translation from Nasāʾī 4929)   

أحمد:١٥٦٤٠حَدَّثَنَا حَجَّاجٌ حَدَّثَنَا لَيْثٌ قَالَ حَدَّثَنِي زَبَّانُ بْنُ فَائِدٍ عَنِ ابْنِ مُعَاذِ بْنِ أَنَسٍ عَنْ أَبِيهِ

عَنْ رَسُولِ اللهِ ﷺ مِثْلَ ذَلِكَ