Anas said, "We were forbidden in the Quran from asking the Messenger of Allah ﷺ about anything," and he related the hadith in the same manner.
حدثني عبد الله بن هاشم العبدي حدثنا بهز حدثنا سليمان بن المغيرة
قال أنس كنا نهينا في القرآن أن نسأل رسول الله ﷺ عن شيء وساق الحديث بمثله