(6) باب شَفَقَتِهِ صلى الله عليه وسلم عَلَى أُمَّتِهِ وَمُبَالَغَتِهِ فِي تَحْذِيرِهِمْ مِمَّا يَضُرُّهُمْ
Jabir b. Abdullah reported Allah's Messenger (ﷺ) as saying. My example and your example is that of a person who lit the fire and insects and moths began to fall in it and he would be making efforts to take them out, and I am going to hold you back from fire, but you are slipping from my hand.
Reference: Sahih Muslim 2285
In-book reference: Book 43, Hadith 21
USC-MSA web (English) reference(deprecated numbering scheme): Book 30, Hadith 5672