Sure Al-Ahqaf

46:8

أَمْ يَقُولُونَ ٱفْتَرَىٰهُ ۖ قُلْ إِنِ ٱفْتَرَيْتُهُۥ فَلَا تَمْلِكُونَ لِى مِنَ ٱللَّهِ شَيْـًٔا ۖ هُوَ أَعْلَمُ بِمَا تُفِيضُونَ فِيهِ ۖ كَفَىٰ بِهِۦ شَهِيدًۢا بَيْنِى وَبَيْنَكُمْ ۖ وَهُوَ ٱلْغَفُورُ ٱلرَّحِيمُ

Oder sagen sie etwa: "Er hat ihn ersonnen"? Sag: Wenn ich ihn ersonnen haben sollte, so vermögt ihr für mich nichts gegen Allah (auszurichten). Er weiß sehr wohl, worüber ihr euch (ausgiebig) auslaßt. Er genügt als Zeuge zwischen mir und euch. Und Er ist der Allvergebende und Barmherzige.

Tafsir 46:8

Do these idolaters say: “Muhammad has made up this Qur’ān and attributed it to Allah?” Say to them, O Messenger: “If I have made it up on my own part, you do not have power over any plan for me if Allah wants to punish me, so how can I put myself at risk of punishment by fabricating against Him? Allah knows better the criticism of His Qur’ān and slandering me you engage in. He, (may He be glorified), is sufficient as a witness between me and you. And He is Forgiving of the sins of His servants who repent to Him, Merciful to them”.