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.
quran:24:18

And Allah makes clear to you the verses, and Allah is Knowing and Wise.  

And God clarifies for you the signs, through commands and prohibitions, and God is Knower, of what He enjoins and what He prohibits, Wise, therein.
القرآن:٢٤:١٨

وَيُبَيِّنُ اللَّهُ لَكُمُ الْآيَاتِ ۚ وَاللَّهُ عَلِيمٌ حَكِيمٌ  

{ويبين الله لكم الآيات} في الأمر والنهي {والله عليم} بما يأمر به وينهي عنه {حكيم} فيه.