It is narrated from Hazrat Abu Huraira (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) said: That person will not enter Hell who kills a disbeliever and then adopts the straight path.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 7575