Between Musa, peace be upon him, and the Sorcerers Allah describes the actual encounter between Musa, peace be upon him,and the Egyptians in Surat Al-A` raf, Surah Ta Ha, and in this Surah
The Egyptians wanted to extinguish the Light of Allah with their words, but Allah insisted that His Light should prevail even though the disbelievers disliked that. This is the issue of disbelief and faith; they never confront one another but faith always prevails:
(Nay, We fling the truth against the falsehood, so it destroys it, and behold, it disappears. And woe to you for that which you ascribe.) (21:18)
وَقُلْ جَآءَ الْحَقُّ وَزَهَقَ الْبَـطِلُ
(And say: "Truth has come and falsehood has vanished.") (17:81) The sorcerers of Egypt were the most skilled in the art of illusion, but when a huge group of them gathered from all corners of the land, and the people came together on that day whose exact numbers are known to Allah Alone, one of them said:
بِعِزَّةِ فِرْعَوْنَ (By the majesty of the Pharaoh - 26:44). This was an expression of pledge from the magicians, which was in vogue in the olden times. It is unfortunate that similar oaths have now become common among the Muslims as well, which are even more evil and vile, for instance, 'by the king,' 'by the head of yours,' 'by the beard of yours,' 'by the grave of your father' etc. It is not permitted to make an oath of this nature under the Islamic law (because swearing in the name of someone other than Allah is a sin). Rather, it will not be wrong to say that swearing a true oath in this way is as much sinful as swearing a false oath in the name of Allah. (Ruh)
Tazkirul Quran
Maulana Wahiduddin KhanOn ayahs 48–50
The magicians threw down their ropes and sticks, and the spectators felt as if these ropes and sticks had changed into snakes and were running along the ground. But this was not a real change. It was simply an optical illusion, whereas, the changing of Moses’s rod into a snake was a miracle of God. So when Moses’s rod became a snake and started moving along the ground, it instantly nullified the spell cast by the magicians. Thereafter, the magician’s ropes and sticks reverted to being the ropes and sticks that they actually were. Earlier, the magicians had considered Moses to be a magician like themselves. But, the aforesaid experience opened their eyes. They were well versed in the art of magic. So, they immediately understood that this was not magic but prophethood. However, it was possible that they could have refused to accept the Truth and, like Pharaoh, could have uttered some falsities in order to reject Moses. But, it is impossible for a man who is intellectually alive not to accept the Truth when it fully reveals itself before him. The magicians were persons who were alive in this manner. So, they immediately accepted Moses’s truthfulness.
Uthmani text of the Madinah mushaf (King Fahd Complex). Translation: Saheeh International. Tafsir via Quran.com.