Prohibition of Magic in Islam

In the reign of Prophet Sulaiman ???? ????, Bani Israโ€™el started practicing Magic. At this Sulaiman ???? ???? tried to stop them. He took their books & buried them under his holy chair.

After the death of Sulaiman ???? ????, rogues took those books (of magic) out of soil & said to the people thatย  Sulaiman ???? ???? ran his kingship with the help of these books.

The pious & learnt men of Bani Israโ€™el though opposed this but commoners took magic as knowledge of Hazrat Sulaiman ???? ????. This practice remained till the coming of Muhammad ?? ???? ???? ????.
A Verse of Surah Al Baqarah was alighted in the negation of this practice, which is as follows:
โ€œAnd they followed [instead] what the devils had recited during the reign of Sulaiman ???? ????. It was not
Sulaiman ???? ????. who disbelieved, but the devils disbelieved, teaching people magic and that which was revealed to the two angels at Babylon, Harut & Marut But the two angels do not teach anyone unless they say, โ€œWe are a trial, so do not disbelieve [by practising magic].โ€ And [yet] they learn from them that by which they cause separation between a man and his wife. But they do not harm anyone through it except by permission of Allah ?????. & the people learn what harms them and does not benefit them. But the Children of Bani Israโ€™el certainly knew that whoever purchased the magic would not have in the Hereafter any share. & wretched is that for which they sold themselves, if they only knew.โ€ [Al Qurโ€™an 2:102]

Hence practicing Magic is heresy (???) in Islam & one doing so will be pagan.

Any mistake, on my part, if found, may please be forgiven.

JAZAAK ALLAH!