It is narrated from Sayyiduna Ibn Mas'ud (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "The blood of a Muslim is not lawful except in one of three cases: if he commits adultery after marriage, or if he is killed in retaliation (qisas), or a person who abandons his religion and separates from the community."