idiom
bite your tongue
Meaning
to stop yourself from saying something you want to say
Example
I had to **bite my tongue** when my boss took credit for my work.