Messenger of Allah ﷺ said, "A faithful believer remains at liberty regarding his religion unless he kills somebody unlawfully." (Using translation from Bukhārī 6862)
أَنَّ رَسُولَ اللهِ ﷺ قَالَ لَا يَزَالُ الْمَرْءُ فِي فُسْحَةٍ مِنْ دِينِهِ مَا دَامَ لَمْ يُصِبْ دَمًا حَرَامًا