Umm al-Mu'mineen Aisha (may Allah be pleased with her) narrates that the Prophet Muhammad (peace and blessings be upon him) was affected by magic, to the extent that he (peace be upon him) would imagine that he had done something, although he had not actually done it.