The question is too broad to answer well as asked — a character being silenced or restrained turns up across a huge range of titles, from stealth games to horror, usually as a plot beat rather than a defining feature.
If you can name the genre, the platform, or roughly when you saw it, the search narrows considerably. Content-creator playthroughs are also a common way people encounter these scenes, which may be the context behind the question.