Imam Malik, may Allah have mercy on him, said that whoever knows magic and practices it, it is appropriate to kill him.