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:17:39

That is from what your Lord has revealed to you, ˹O Muhammad˺, of wisdom. And, ˹O mankind˺, do not make ˹as equal˺ with Allah another deity, lest you be thrown into Hell, blamed and banished.  

This is ˹part˺ of the wisdom, the admonition, which your Lord has revealed to you, O Muhammad (s). And do not set up with God any other god, or you will be cast into Hell, blameworthy, abandoned, banished from God’s mercy.
القرآن:١٧:٣٩

ذَٰلِكَ مِمَّا أَوْحَىٰ إِلَيْكَ رَبُّكَ مِنَ الْحِكْمَةِ ۗ وَلَا تَجْعَلْ مَعَ اللَّهِ إِلَٰهًا آخَرَ فَتُلْقَىٰ فِي جَهَنَّمَ مَلُومًا مَدْحُورًا  

{ذلك مما أوحى إليك} يا محمد {ربك من الحكمة} الموعظة {ولا تجعل مع الله إلها آخر فتلقى في جهنم ملوما مدحورا} مطرودا من رحمة الله.