It is narrated from Sayyiduna Anas (may Allah be pleased with him) that "The Prophet (peace and blessings be upon him) was passing by with some of his Companions when suddenly a child was seen on the road, whose mother feared that he might be trampled (underfoot). She was heard calling out: 'My son! My son!' and, beside herself with motherly love, she rushed to pick him up. At this the Companions said: 'O Messenger of Allah, this woman would never throw her son into the Fire.' So he (peace and blessings be upon him) said: 'And Allah Almighty will not throw His beloved into the Fire either.'"
Imam Ahmad (may Allah have mercy on him) and Abu Hatim al-Razi (may Allah have mercy on him) also narrated it from Muhammad bin Abdullah al-Ansari, from Humayd, from Sayyiduna Anas (may Allah be pleased with him), with the like of it.
This hadith has a supporting narration (shahid) in the Sahih from the hadith of Sayyiduna Umar bin al-Khattab (may Allah be pleased with him).