Pictured is Commander Riker, First Officer of the starship Enterprise in "Star Trek: The Next Generation". Although this is NOT a corresponding screenshot, he did speak this exact line in Episode 2 of Season 2 "Where Silence Has Lease".
In the scene, the Enterprise crew have mere seconds to stop the ship from completing its self-destruct sequence:
Computer: "…Ten seconds to auto-destruct…"
Riker: "Captain…"
Captain: "Abort auto-destruct sequence."
Computer: "Riker, William T., do you concur?"
Riker: "Yes! Absolutely! I do indeed concur, wholeheartedly!"
Computer: "Auto-destruct canceled."
Captain: "A simple 'yes' would have sufficed, Number One."
Riker: "I didn't want there to be any chance of a misunderstanding."