Jami` at-Tirmidhi, Book 44, Hadith 17 (Tirmidhi 2957)

Narrated Abu Hurairah:

that the Messenger of Allah (ﷺ) said: "The Parable of myself and that of my Ummah is that of a man who kindled a fire, and the flies and moths began flying into it - and I am trying to prevent you from diving into it."