The Messenger of Allah ﷺ said in a sermon he delivered, "Allah has commanded me to teach you what you do not know from what He has taught me this day. He said, 'Every wealth I have granted to My servants is lawful for them.'" Then he mentioned the rest of the hadith.
حدثنا روح حدثنا عوف عن حكيم الأثرم عن الحسن قال حدثني مطرف بن عبد الله حدثني
قال رسول الله ﷺ في خطبة خطبها قال إن الله عز وجل أمرني أن أعلمكم ما جهلتم مما علمني يومي هذا قال وإن كل مال نحلته عبادي فهو لهم حلال فذكر الحديث