Francine from American Dad! does this to Steve in the episode "For Whom The Sleigh Bell Tolls".
In one episode of SpongeBob SquarePants, Squidward has just traveled through time and met Spongetron/Future SpongeBob and his hundreds of clones. Trying to process what has just happened, Squidward begins doing sit-ups and intones "Future! Future!" over and over again until Future SpongeBob drops a brick on his head.
In another case, SpongeBob begins "spiraling" after coming to the realization that he apparently is ugly, causing Patrick to slap him across the face. SpongeBob immediately calms down. Being The Ditz, Patrick raises his hand to give him another.
Done deliberately over the top, word for word, in Avatar: The Last Airbender, episode "The Drill". The added irony is that the man freaking out is the general in charge of defending the city's outer wall, and it is Sokka who slaps him...a teenager who is usually the comic relief character.
Hoop: You can't slap a woman! (slaps Stroker) Stroker: It was a regain-your-composure slap. They do it in movies all the time. (slaps Hoop)Hilarity Ensues.
Parodied in the Family Guy episode "Breaking Out Is Hard to Do": The family are on the lam after helping Lois escape from prison. After Meg (calmly) wonders out loud where they're going, Peter slaps her and barks at her to calm down.
Also done in the episode "He's Too Sexy for His Fat": Brian begins freaking out when he's covered in fleas, and Peter, quoting the trope name, immediately slaps...Lois. She's (understandably) less than pleased.
And done to Stewie in another episode. The scene being a parody of Airplane! (complete with word-for-word dialogue from that film), Stewie won't calm down and a line of people with increasingly extreme methods is waiting for their turn.
In Cow and Chicken, Cow at one point slaps a panicking Chicken across the face with her udder and tells him to snap out of it.
In one episode of Back at the Barnyard, Otis has a breakdown after a flying accident which he claims nearly killed all of his friends. When trying to snap him out of it, Freddie grabs Peck and smacks him a few times. Peck suggests he should have done the same to Otis, to which Freddie replies "He's much too big."
In the Buzz Lightyear of Star Command episode "Star Smasher", the LGMs are panic stricken and their Hive Mind is causing all of them to panic. Buzz splashes one with cold water and they all calm down.
Used on The Simpsons. When Ned Flanders panics about being lost at sea, Homer slaps him, calming him down... then keeps slapping him.
Bart: Dad! I think he gets the point! Homer:(slap) Better (slap) to be (slap) safe (slap) than (slap)sorry(slap)'... sorry. Ned: Diddly (slap)''
In an earlier episode, Bart ends up hitting a fellow soldier (It Makes Sense in Context) to get him to focus on the task at hand. Grampa later tells Bart off for it.
In "Bart the Murderer" Groundskeeper Willie gives one to Mrs. Krabappel when she starts crying after Principal Skinner is presumed dead.
In The Ren & Stimpy Show episode "My Shiny Friend", Stimpy's obsessive teleholic nature becomes too much for Ren, so the chihuahua smashes the T.V. causing Stimpy to freak out and break down in tears as the cat tries to put the T.V. back together. Ren then slaps Stimpy across the cheek and yells "Snap out of it!"
Also, Ren uses exactly the trope's wording for this in "Rubber Nipple Salesmen", when Stimpy begs to talk at the next door they visit.
In "Royal Canadian Kilted Yaksmen" one of the duo's yaks is driven to a psychotic breakdown by Stimpy singing the Kilted Yaksmen anthem once too many. Ren is forced to slap the yak and yell "Come to your SENSES, man! This is no time for hysterics!"
In the South Park episode "Two Guys Naked in a Hot Tub", Butters goes into hysterics over being shot at by the ATF. Stan slaps him and even says the accompanying phrase, causing Butters to ask, "How come you slapped my face, Stan, huh? Why on earth would you do that, anyways?"
Also exploited by Cartman, in "Jared Has Aides", after Butters points out Cartman's weight, he smacks him one, before quickly quoting the trope name.
Bender: I don't know, Fry. For the first time in my life I feel like I've stolen enough. Fry:(slaps him) Bender, snap out of it! Bender: Sorry, I don't know what came over me. Let's go! (singing) I love stealing, I love taking things!
After Fry realizes that he is his own grandfather, he freaks out into hysterical sobs to the point where Leela slaps him repeatedly until he stops.
Codename: Kids Next Door: When Chad (Numbuh 274) sends the Moon Base hurtling toward the sun, Numbuh 86 starts to panic. "What are we gonna do?!" To snap her out of her hysteria, Numbuh 1 slaps her.
Subverted in the Pasila episode "Salaviina", when Kyösti Pöysti is getting hysterical over the lack of alcoholic drinks in the entire Finland and the knowledge he won't be able to get drunk that Friday.
Pöysti: When will it be possible again? When? Tell me! When will it be possible again! Repomies: Let go of me! Pöysti: Tell me! Repomies: I don't know! Now get a hold of yourself, Pöysti! (slap) Pöysti: Ow! You hit me. Why? Repomies: Because I can't drink either! God damn it! (breaks down and sprawls crying on the floor)
In The Oblongs, Pickles takes advantage when her old high school friend Pristine panics and continues slapping her even after Pristine thanks her for calming her down and assures her she's alright now.
Pickles: I'll tell you when you're alright! (slap)
Pickles slaps her again about a minute later.
In one episode of The Cleveland Show. Cleveland winds up gambling away all of Roberta's college money at a casino and goes to tell Donna. Donna ends up in a loop of surprised statements till Kendra slaps her to snap her out of it. Of course since Donna is a Sassy Black Woman...
Donna (After being slapped): Thanks Kendra, but do that again and I'll smack the taste out your mouth! Kendra: Not the taste!
In an episode of Bobby's World, he learns karate but gets a power trip when he uses it. Towards the end, for some reason, he keeps telling his friend Jackie to hit him (perhaps as a demonstration), she finally does sucker punch him when he stops asking and his guard is down to show him what he's doing to other people, even though it seems almost like a Broken Aesop because he ASKED her to hit him for almost a minute before that scene.
If I remember correctly, Jackie was trying to talk sense into Bobby, and he responded by repeatedly daring her to kiss him, a Running Gag on the show. Normally he would just gag and cough and mutter something about cooties, but the implication was this time he intended to use it as an excuse to beat her up (even though he'd already got into trouble at school and at home for this behavior). She only hit him because he insisted on it, even after she refused. Fortunately, she got through to him.
Parodied in "The Game", where Darwin is hysterical over the family having started a game of Dodge of Dare and slaps Gumball to get him to stop under-reacting, after which they both start yelling every single word for the rest of the scene.
In the Phineas and Ferb episode "Phineas and Ferb Interrupted", Phineas and Ferb are made dullards by a stray shot from Dr. Doofenshmirtz's Dull-and-Boring-inator. When Buford starts to succumb to their literally mind-numbing prattle about meteorology, Isabella slaps him out of it.
In The Powerpuff Girls episode "Little Miss Interprets," Bubbles is hysterically crying, trying to explain what she believes is the Professor's plan to replace the girls with new girls. Buttercup slaps her to quiet her down.
In one episde of Ed, Edd 'n' Eddy, Edd is busy labeling his things, when he suddenly finds his magnifying glass is missing. He's so disgusted by the thought of someone else stealing it, that he goes right into a panic attack. Eddy's solution? Slamming his own bed right on top of him.
Edd: I feel sick! I feel nauseous! I CAN'T BREATHE!
*Eddy casually slams Edd's bed down on top of the hyperventilating Edd, spearing him right through the mattress*
Edd: *in subdued annoyance* Thank you. I needed that.
Eddy: Anytime, pal.
Parodied in The Looney Tunes Show: Bugs sees Daffy standing still in shock because his newspaper was gone. So he slaps him to wake him up...but Daffy being Daffy, he slaps back until it becomes a slap fight. After they stop, Daffy freezes, and Bugs slaps him again. But this time, he hardly reacts to it.
In "Dan Vs. Summer Camp", when a young Chris tries to eat poison ivy due to hunger, Dan grabs him by the collar and shouts:
Dan: (while slapping Chris) Get a hold of youself!
Bob's Burgers: Louise is quite fond of delivering this to those around her who are having panic attacks/meltdowns. She has slapped Linda and Tina multiple times, and Mickey at least once. At one point, she even does this to herself in a round-about fashion: she is convinced that the only way to alleviate her newfound infatuation with a boy band singer is by slapping the crap out of him, and that's exactly what she does.