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:51:51

And do not make ˹as equal˺ with Allah another deity. Indeed, I am to you from Him a clear warner.  

And do not set up another god alongside God. Truly I am a clear warner to you from Him (before fa-firrū, ‘so flee’, one may read an implicit ˹preceding˺ qul lahum, ‘Say to them’).
القرآن:٥١:٥١

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

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

See similar narrations below:

Collected by Qurʾān
quran:51:50

So flee to Allah. Indeed, I am to you from Him a clear warner.  

So flee unto God, that is to say, away from His punishment toward His reward by being obedient to Him and not disobeying Him. Truly I am a clear warner to you from Him.
القرآن:٥١:٥٠

فَفِرُّوا إِلَى اللَّهِ ۖ إِنِّي لَكُمْ مِنْهُ نَذِيرٌ مُبِينٌ  

{ففروا إلى الله} أي إلى ثوابه من عقابه بأن تطيعوه ولا تعصوه {إني لكم منه نذير مبين} بيِّن الإنذار.