“Then they disputed over their affair among themselves,” meaning: they debated each other; referring to the sorcerers.
﴿فتنازعوا أَمرهم بَينهم﴾ أَيْ: تَنَاظَرُوا؛ يَعْنِي: السَّحَرَةَ