Allaah the Most High said:

And We did not send any Messenger before you (O Muhammad ﷺ) but We revealed to him (saying): Lā ilāha illa Ana [none has the right to be worshipped but I (Allaah)], so worship Me (Alone and none else).“

{Sūrah Al-Anbiyâ 21:25}