Allah says: You are O Muhammad not responsible for them; whoever wants to believe in the Quran it is up to him and whoever wants to disbelieve in the Quran it is up to him and you O Muhammad are not in charge for what is inside their hearts of faith and belief.
——————————————-
Ayah 106 says:
Follow O Muhammad what has been inspired in you from from your Lord.
Follow O Muhammad and O believers what has been revealed in the Quran.
Act upon that which is revealed to you from your Lord, i.e. the Quran that tells the lawful and unlawful.
There is no god but Allah
There is no creator or provider save Allah
And turn away from the idolaters, from those who associate with Allah a son, a daughter, a spouse, a partner and turn away from those who mock.
Ayah 107 says:
Had Allah willed, they would not have been idolaters
Had Allah willed, they would not have associated a son with Allah
Had Allah willed, they would not have associated a daughter with Allah
Had Allah willed, they would not have associated a spouse with Allah
Had Allah willed, they would not have ascribed partners to Allah
We have not set you as a keeper over them to protect them.
We have not set you as a watcher over them so that you might then requite them for their deeds; nor are you a guardian over them, so that you might be able to coerce them to faith.
You are O Muhammad not responsible for them; whoever wants to believe in the Quran it is up to him and whoever wants to disbelieve in the Quran it is up to him and you O Muhammad are not in charge for what is inside their hearts of faith and belief.
—————————————————
The verses 6:106-107 in different translations
QARIB:
106) therefore, follow what has been revealed to you from your lord there is no god except him, and avoid the idolaters.
107) had Allah willed, they would not have associated. We have not made you an overseer for them, nor are you their guardian.
SHAKIR:
106) follow what is revealed to you from your lord; there is no god but he; and withdraw from the polytheists
107) and if Allah had pleased, they would not have set up others (with him) and we have not appointed you a keeper over them, and you are not placed in charge of them
PICKTHAL:
106) follow that which is inspired in thee from thy lord; there is no Allah save him; and turn away from the idolaters.
107) had Allah willed, they had not been idolatrous. we have not set thee as a keeper over them, nor art thou responsible for them.
YUSUFALI:
106) follow what thou art taught by inspiration from thy lord: there is no god but he: and turn aside from those who join gods with Allah.
107) if it had been Allah’s plan, they would not have taken false gods: but we made thee not one to watch over their doings, nor art thou set over them to dispose of their affairs.