Aslam

Surah Az-Zumar — 39:65
وَلَقَدۡ أُوحِيَ إِلَيۡكَ وَإِلَى ٱلَّذِينَ مِن قَبۡلِكَ لَئِنۡ أَشۡرَكۡتَ لَيَحۡبَطَنَّ عَمَلُكَ وَلَتَكُونَنَّ مِنَ ٱلۡخَٰسِرِينَ
It has already been revealed to you—and to those ˹prophets˺ before you—that if you associate others ˹with Allah˺, your deeds will certainly be void and you will truly be one of the losers.

Commentary

Allah had revealed to you, O Messenger, and to the messengers before you: If you worship others together with Allah the reward of your good deeds will be void and you will be of the losers in the world due to the loss of your religion and in the Hereafter due to the punishment.

Read Tafsir Ibn Kathir