The Quran Verses
Surah 7:120–122:
And the magicians fell down in prostration. They said, "We have believed in the Lord of the worlds, The Lord of Moses and Aaron."
The Relevant Source Text (The Bible)
Exodus 7–8:
In the biblical account, the magicians recognize the "finger of God" (Exodus 8:19) during the plague of gnats, but they do not convert to the faith of Moses, nor do they prostrate themselves in a group confession of monotheism.
The Quranic version dramatizes the event into a sudden, mass conversion of the Egyptian sorcerers. To the scholar, this is a "theological retrofitting."
The author takes a biblical event and reshapes it to mirror the "conversion scenes" typical of Muhammad’s own prophetic career, where opponents are suddenly overwhelmed by signs and submit to Islam.