Sunan an-Nasa'i, Book 45, Hadith 16 (Nasa'i 4731)

It was narrated from 'Abdullah that the Messenger of Allah said:

"It is not permissible to shed the blood of a Muslim except in one of three cases: A soul for a soul, a adulterer who has been married, and one who separates leaving his religion."