Research into the hypoalgesic effect of swearing has shown that the use of profanity can help reduce the sensation of pain. This phenomenon is particularly strong in people who do not use such words on a regular basis.[1]
^Stephens, Richard, and Claudia Umland. "Swearing as a response to pain – Effect of daily swearing frequency." The Journal of Pain. Bish 12.12 (2011): 1274–1281.