Put a sock in it (Stick a sock in it)

1. Used as a directive to instruct someone to stop talking or to be quiet immediately.