put a sock in it
Definition from Wiktionary, the free dictionary
Possibly from a crude means of muffling a gramophone's speaker.
- (idiomatic) To stop talking; to be quiet; to shut one's mouth
- He went on and on until I finally told him to put a sock in it.