This is a popular saying in Italian, often rendered in Neapolitan as pensa a' salute, literally, think of your health. This is something Italians will say to you when you are whining about relatively inconsequential things and they wish to bring you back to the reality of what is really important in life. I can't argue with that.
In the video, we see the great comedic actors Toto' and Peppino De Filippo (appropriately, both are from Naples). They're zippin' along a country road and Toto' literally lashes out at poor Peppino. He then adds insult to injury by telling the mildly complaining Peppino: pensa alla salute.