Yahya related to me from Malik from Muhammad ibn Abd ar-Rahman ibn Sad ibn Zurara that he had heard that Hafsa, the wife of the Prophet ﷺ killed one of her slave-girls who had used sorcery against her. She was a mudabbara. Hafsa gave the order, and she was killed. Malik said, "The sorcerer is the one who uses sorcery for himself and no one else uses that for him. It is like the one about whom Allah, the Blessed, the Exalted, said in His Book, 'They know the one who devotes himself to it will have no share in the Next World.' (Sura 2 ayat 102) I think that that person is killed if he does that himself."
أَنَّ حَفْصَةَ زَوْجَ النَّبِيِّ ﷺ قَتَلَتْ جَارِيَةً لَهَا سَحَرَتْهَا وَقَدْ كَانَتْ دَبَّرَتْهَا فَأَمَرَتْ بِهَا فَقُتِلَتْ قَالَ مَالِكٌ السَّاحِرُ الَّذِي يَعْمَلُ السِّحْرَ وَلَمْ يَعْمَلْ ذَلِكَ لَهُ غَيْرُهُ هُوَ مَثَلُ الَّذِي قَالَ اللَّهُ تَبَارَكَ وَتَعَالَى فِي كِتَابِهِ وَلَقَدْ عَلِمُوا لَمَنِ اشْتَرَاهُ مَا لَهُ فِي الآخِرَةِ مِنْ خَلاَقٍ فَأَرَى أَنْ يُقْتَلَ ذَلِكَ إِذَا عَمِلَ ذَلِكَ هُوَ نَفْسُهُ