The only response of the disbelievers to the invitation of Abraham was: “Kill him/ burn him.” Then God made him walk out of the fire [that the disbelievers had cast him into] so that the believers learn a lesson from this incidence [that God never leaves his sincere worshippers alone and will give them the final victory.]