It is narrated from Abu Hurairah, may Allah be pleased with him, that the Messenger of Allah ﷺ said: "Relate (incidents) from the Children of Israel, there is no harm in it, and narrate hadiths from me, but do not attribute lies to me."
Hadith Referenceمسند الإمام الشافعي / كتاب فضائل قريش وغيرهم وأبواب متفرقة / 1811
Hadith Takhrijاخرجه البخاري، احادیث الانبياء، باب ما ذكر عن بنی اسرائیل، رقم : 3461 ـ وابن ماجة، السنة، باب التغليظ في تعمد الكذب على رسول الله صلی اللہ علیہ وسلم (34)۔