Ibn Masood (may Allah be pleased with him)
The Messenger of Allah (peace and blessings of Allah be upon him) said, “It is not permissible to spill the blood of a Muslim except in three [instances]: the married person who commits adultery, a life for a life, and the one who forsakes his religion and separates from the community.”
[Al-Bukhari]
[Muslim]