When Firaoan declared a competition between the magicians and Hazrat Musa (as), he assigned the organising committee and commanded them to carryout the competition on the given date. It was customary for the participants who were appearing in any competition to wear a uniform and appear as professionals. Wearing of a proper uniform was a diktat issued by the Firaon himself.
The organisers made dresses for both the magicians and Hazrat Musa (as), magicians were asked to wear the given dresses to which they complied whereas Hazrat Musa (as) refused to wear any uniform. It was dawned upon the organisers that if Hazrat Musa (as) wasn’t wearing the desired dress all of them would be punished and the modest of which meant death by torture.
They were all worried and began to shudder under fear when someone among them suggested that if Hazrat Musa (as) is reluctant in wearing the dress of magicians, then the only solution is to make the magicians wear His (as) dress. Viola! And there it was!
The organisers came up with the robes for magicians which were resembling to that of the Hazrat Musa (as) in every aspect.
The competition began and the magicians after losing proclaimed Shadah. They were the only people in the whole gathering who were guided by the Allah. Firaon was infuriated after witnessing their proclamation and ordered to execute them on a cross.
The angels were astonished and asked Allah, “Why did you choose to guide the people that dared to compete against your prophet?”
Allah replied, “These magicians were the only people in the whole gathering that closely resembled my Prophet, it’s just because of their resemblance to Musa (as) that I chose to guide them and grant them jannah!”