Sure Ash-Shura

42:24

أَمْ يَقُولُونَ ٱفْتَرَىٰ عَلَى ٱللَّهِ كَذِبًۭا ۖ فَإِن يَشَإِ ٱللَّهُ يَخْتِمْ عَلَىٰ قَلْبِكَ ۗ وَيَمْحُ ٱللَّهُ ٱلْبَٰطِلَ وَيُحِقُّ ٱلْحَقَّ بِكَلِمَٰتِهِۦٓ ۚ إِنَّهُۥ عَلِيمٌۢ بِذَاتِ ٱلصُّدُورِ

Oder sagen sie etwa: "Er hat eine Lüge gegen Allah ersonnen"? Wenn nun Allah will, kann Er dir das Herz versiegeln. Und Allah löscht das Falsche aus und setzt die Wahrheit mit Seinen Worten durch. Er weiß über das innere Geheimnis Bescheid.

Tafsir 42:24

One of the claims of the idolaters is that they say: Muhammad has invented a lie against his Lord by his claim of being His messenger. One of the things that confirm that the Qur’ān is revelation from Allah is that if He willed He could have made you forget this Qur’ān. But Allah removes falsehood and establishes the truth. This is what occurred to the call of the idolaters, which was removed, and the call of Islam which was established. He knows what is in the hearts of His servants. Nothing is hidden from Him.