Allah sent Moses with the guidance

Allah said ( interpretation of the meaning ) : { And has the story of Moses reached you? - When he saw a fire and said to his family, "Stay here; indeed, I have perceived a fire; perhaps I can bring you a torch or find at the fire some guidance." And when he came to it, he was called, "O Moses, Indeed, I am your Lord, so remove your sandals. Indeed, you are in the sacred valley of Tuwa. And I have chosen you, so listen to what is revealed [to you]. Indeed, I am Allah . There is no deity except Me, so worship Me and establish prayer for My remembrance. }
Quran ( 20 : 9 - 14 )

Allah sent him to take people from worshipping the slaves to the worship of the Lord of the slaves and to advise Pharoah kindly to leave his false divinity