Allah's Messenger (ﷺ) said, "A faithful believer remains at liberty regarding his religion unless he kills somebody unlawfully."
Sahih al-Bukhari Book 87, Hadith 2