The Quran says that whoever kills a person unjustly, it is as if he killed all of humanity, and it forbids killing the life that Allah has made sacred except by right. It also protects people from accusations of shame: anyone who accuses chaste people of adultery and does not bring four witnesses is to be punished with eighty lashes, and his testimony is not accepted afterwards. For a husband who accuses his wife without witnesses, the Quran sets out an oath procedure in which both swear, and no one is killed. Everything is placed in the hands of the court and of proof, never of the family.
In Sahih Muslim, Sa'd ibn Ubada asked the Prophet ﷺ whether a man who finds another man with his wife may kill him, and the Prophet ﷺ answered, 'No.' When Sa'd protested, the Prophet ﷺ told those present to listen to what their chief said, adding, in another narration, that Sa'd was a jealous man, but that he himself was more jealous and Allah more jealous than he. Many scholars understand from this that a man may not carry out punishment himself: the matter belongs to the court and needs proof. A woman's reputation is protected by the heavy penalty for false accusation, not by killing her. Where laws or courts in some places have treated honour killings leniently, that comes from local customs and legal codes, and many Muslim scholars say that these have no basis in the Quran or the Prophet's teaching.
Honour killings have been reported in many societies and among people of different faiths, mostly where tribal or patriarchal ideas of family honour are strong. Reliable figures are hard to gather, because many cases go unreported or are recorded as other crimes. Violence in the name of family honour is older than Islam. In pre-Islamic Arabia some people buried baby girls alive, and the Quran denounced it, saying that the buried girl will be asked for what sin she was killed. Muslims who protect women and girls from such violence are following their religion.