Sure Al-Ankaboot

29:48

وَمَا كُنتَ تَتْلُوا۟ مِن قَبْلِهِۦ مِن كِتَٰبٍۢ وَلَا تَخُطُّهُۥ بِيَمِينِكَ ۖ إِذًۭا لَّٱرْتَابَ ٱلْمُبْطِلُونَ

Und du hast vordem kein Buch verlesen und es auch nicht mit deiner rechten Hand niedergeschrieben. Sonst würden wahrlich diejenigen zweifeln, die (es) für falsch erklären.

Tafsir 29:48

O Messenger! You never read any book before the Qur’ān, nor did you write anything with your hand because you are unlettered and cannot read or write. Had you been able to read and write, the ignorant people would have doubted your messengership and used it as an excuse to say you were relating from the previous Books.