Jabir b. Abdullah reported Allah's Messenger (ﷺ) as saying. My example and your example is…

Sahih Muslim Book 43 Hadith 21

Sahih Muslim #2285

The Book of Virtues 43:21

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.

Chapter: His Compassion Towards His Ummah, And His Intense Concern To Warn Them Against That Which May Harm Them

Grade: Sahih