Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:26:46

So the magicians fell down in prostration ˹to Allah˺.  

So the sorcerers fell down prostrating.
القرآن:٢٦:٤٦

فَأُلْقِيَ السَّحَرَةُ سَاجِدِينَ  

{فألقيَ السحرة ساجدين}.

See similar narrations below:

Collected by Qurʾān
quran:20:70

So the magicians fell down in prostration. They said, "We have believed in the Lord of Aaron and Moses."  

Thereat the sorcerers cast ˹their heads˺ down prostrating, they fell down prostrating to God, exalted be He: They said, ‘We ˹now˺ believe in the Lord of Aaron and Moses’.
القرآن:٢٠:٧٠

فَأُلْقِيَ السَّحَرَةُ سُجَّدًا قَالُوا آمَنَّا بِرَبِّ هَارُونَ وَمُوسَىٰ  

{فألقي السحرة سجدا} خرّوا ساجدين لله تعالى {قالوا آمنا برب هارون وموسى}.