Question:
How could magic be cast on the Messenger of Allah ﷺ, when he is the Messenger of Allah?
Answer:
This matter was meant to teach the entire Ummah that magic is real, that it causes harm by the permission of Allah, and that the Messenger of Allah ﷺ is a human being.