Surah Adh-Dhariyat 51:52
كَذَٰلِكَ مَآ أَتَى ٱلَّذِينَ مِن قَبْلِهِم مِّن رَّسُولٍ إِلَّا قَالُوا۟ سَاحِرٌ أَوْ مَجْنُونٌ
Similarly, there came not to those before them any messenger except that they said, "A magician or a madman."
Translation: Saheeh International
Tafsir
Thus there did not come to those who were before them any messenger but they said that he was ‘A sorcerer or a madman!’ in other words their denial of you by saying that you are a sorcerer or a madman was like the denial of communities before them of their messengers by saying that same thing.
Excerpt from Tafsir al-Jalalayn, commentary on 51:52, via Quran.com. The reader has the full commentary and 9 more tafsirs.