Surah Ash-Shura

42:24

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

Or do they say, "He has invented about Allah a lie"? But if Allah willed, He could seal over your heart. And Allah eliminates falsehood and establishes the truth by His words. Indeed, He is Knowing of that within the breasts.

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.