Surah Az-Zumar 39:65
وَلَقَدْ أُوحِىَ إِلَيْكَ وَإِلَى ٱلَّذِينَ مِن قَبْلِكَ لَئِنْ أَشْرَكْتَ لَيَحْبَطَنَّ عَمَلُكَ وَلَتَكُونَنَّ مِنَ ٱلْخَـٰسِرِينَ
And it was already revealed to you and to those before you that if you should associate [anything] with Allāh, your work would surely become worthless, and you would surely be among the losers.
Translation: Saheeh International
Tafsir
And certainly it has been revealed to you and to those before you that by God! if you associate others with God O Muhammad (s) — hypothetically — your work shall surely fail and you shall surely be among the losers’.
Excerpt from Tafsir al-Jalalayn, commentary on 39:65, via Quran.com. The reader has the full commentary and 9 more tafsirs.