Keep one’s opinions to oneself

To not give your opinion about something (especially when you disagree with others).

I try to keep my opinions to myself when I talk to my father about the local government.