"I heard the Messenger of Allah [SAW] say: 'It is not permissible to shed the blood of a Muslim except in three cases: A man who commits adultery after having married; or one who kills another person, who is to be killed; or who reverts to Kufr after having accepted Islam, who is to be killed.'" (Using translation from Nasāʾī 4058)
سَمِعْتُ رَسُولَ اللهِ ﷺ يَقُولُ لَا يَحِلُّ دَمُ امْرِئٍ مُسْلِمٍ إِلَّا بِثَلَاثٍ أَنْ يَزْنِيَ بَعْدَمَا أُحْصِنَ أَوْ يَقْتُلَ إِنْسَانًا فَيُقْتَلَ أَوْ يَكْفُرَ بَعْدَ إِسْلَامِهِ فَيُقْتَلَ