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.
muslim:12bʿAbdullāh b. Hāshim al-ʿAbdī > Bahz > Sulaymān b. al-Mughīrah > Thābit

We were forbidden in the Holy Qur'an that we should ask about anything from the Messenger of Allah ﷺ and then Anas reported the hadith in similar words.  

مسلم:١٢bحَدَّثَنِي عَبْدُ اللَّهِ بْنُ هَاشِمٍ الْعَبْدِيُّ حَدَّثَنَا بَهْزٌ حَدَّثَنَا سُلَيْمَانُ بْنُ الْمُغِيرَةِ عَنْ ثَابِتٍ قَالَ قَالَ أَنَسٌ كُنَّا نُهِينَا فِي الْقُرْآنِ

أَنْ نَسْأَلَ رَسُولَ اللَّهِ ﷺ عَنْ شَىْءٍ وَسَاقَ الْحَدِيثَ بِمِثْلِهِ