Bulugh al-Maram
Book 9, Hadith 1
عَنْ اِبْنِ مَسْعُودٍ - رضى الله عنه - قَالَ: قَالَ رَسُولُ اَللَّهِ - صلى الله عليه وسلم -{ لَا يَحِلُّ دَمُ اِمْرِئٍ مُسْلِمٍ; يَشْهَدُ أَنْ لَا إِلَهَ إِلَّا اَللَّهُ, وَأَنِّي رَسُولُ اَللَّهِ, إِلَّا بِإِحْدَى ثَلَاثٍ: اَلثَّيِّبُ اَلزَّانِي, وَالنَّفْسُ بِالنَّفْسِ, وَالتَّارِكُ لِدِينِهِ; اَلْمُفَارِقُ لِلْجَمَاعَةِ } مُتَّفَقٌ عَلَيْهِ 1 .1 - صحيح. رواه البخاري (6878)، ومسلم (1676).
Ibn Mas‘ud (may Allah be pleased with him) reported that the Messenger of Allah (peace and blessings be upon him) said: ‘It is not lawful to shed the blood of a Muslim who testifies that there is no god but Allah and that I am the Messenger of Allah, except in one of three cases: a previously married adulterer, a life for a life, or one who abandons his religion and separates from the community.’ Al-Bukhari and Muslim agreed on it.
Note: Sahih. Al-Bukhari (6878) and Muslim (1676) reported it.