In line with the Qur'anQur'an 39:60 ↗وَيَوۡمَ ٱلۡقِيَٰمَةِ تَرَى ٱلَّذِينَ كَذَبُواْ عَلَى ٱللَّهِ وُجُوهُهُم مُّسۡوَدَّةٌۚ أَلَيۡسَ فِي جَهَنَّمَ مَثۡوٗى لِّلۡمُتَكَبِّرِينَ
On the Day of Resurrection, you will see those who told lies about God with their faces blackened. Is there not a place in Hell for the arrogant?
The verse says those who lied about Allah will have blackened faces and an abode in Hell, matching the fire threatened for attributing false words to the messenger.
In line with the Qur'anQur'an 16:116 ↗وَلَا تَقُولُواْ لِمَا تَصِفُ أَلۡسِنَتُكُمُ ٱلۡكَذِبَ هَٰذَا حَلَٰلٞ وَهَٰذَا حَرَامٞ لِّتَفۡتَرُواْ عَلَى ٱللَّهِ ٱلۡكَذِبَۚ إِنَّ ٱلَّذِينَ يَفۡتَرُونَ عَلَى ٱللَّهِ ٱلۡكَذِبَ لَا يُفۡلِحُونَ
And do not say of falsehood asserted by your tongues, “This is lawful, and this is unlawful,” in order to invent lies and attribute them to God. Those who invent lies and attribute them to God will not succeed.
The verse forbids inventing falsehood in religion and says those who invent lies will not succeed, matching the report's warning against false attribution.
In line with the Qur'anQur'an 17:36 ↗وَلَا تَقۡفُ مَا لَيۡسَ لَكَ بِهِۦ عِلۡمٌۚ إِنَّ ٱلسَّمۡعَ وَٱلۡبَصَرَ وَٱلۡفُؤَادَ كُلُّ أُوْلَٰٓئِكَ كَانَ عَنۡهُ مَسۡـُٔولٗا
And do not occupy yourself with what you have no knowledge of. The hearing, and the sight, and the brains—all these will be questioned.
The verse forbids following what one has no knowledge of, supporting the report's ban on saying what the messenger did not say.