Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:26:213

So do not invoke with Allah another deity and ˹thus˺ be among the punished.  

So do not invoke any other god with God, lest you be among the chastised — if you were to do what they call you to.
القرآن:٢٦:٢١٣

فَلَا تَدْعُ مَعَ اللَّهِ إِلَٰهًا آخَرَ فَتَكُونَ مِنَ الْمُعَذَّبِينَ  

{فلا تدع مع الله إلها آخر فتكون من المعذبين} إن فعلت ذلك الذي دعوك إليه.