It was narrated from 'Amr bin Shu'aib, from his father, from his grandfather, that the Messenger of Allah (ﷺ) said:
"A Muslim should not be killed in retaliation for the murder of a disbeliever." (JA)
English reference (JA): Vol. 3, Book 21, Hadith 2659 (JA)
Arabic reference (JA): Book 21, Hadith 2761 (JA)