Summarize this article:

Talk to your doctor or physical therapist about stretches that can ease your back pain. Before and after each game, perform these stretches or others that target your back muscles. Doing these can ease your pain, prevent further injury, and loosen your back muscles. Not every stretch will work for every body or be optimal for certain types of back pain, but consider the following stretches:  Stretch the shoulder by holding a golf club behind your neck and shoulders. Grasp both ends of the club with your hands and rotate your torso gently from side to side from your hips for 10-20 reps.  Stretch the hips by lying down on the floor and pulling one knee to your chest. Return the leg to the floor and repeat with the opposite knee. Perform 10-20 reps.  Stretch the hamstrings by bending over touching your toes. If you can’t reach the floor, simply allow your body to hang over your legs for 10-30 seconds. Use an ice pack or a bag of frozen vegetables on you back 30-60 minutes before you play golf. Keep it on your back for 20 minutes and then remove it. Icing your back before a golf game can reduce swelling and inflammation that cause pain. This may allow you to fully enjoy your game with less or even no pain. Use a towel between the ice pack and your skin to help prevent frostbite.  Freeze a foam cup full of water and gently massage it into your back for 20 minutes. If your skin gets too cold or numb, remove the ice. Pop an over-the-counter pain medication such as ibuprofen or acetaminophen to relieve your back pain and discomfort. Some, such as naproxen sodium and ibuprofen, may even ease swelling and inflammation in your back. Following dosing instructions to keep you comfortable during your entire golf gain. Take any of the following pain meds to relieve back pain:  Aspirin Ibuprofen Naproxen sodium Acetaminophen Avoid pushing yourself too much during your golf game. Play as many holes as you are comfortable and take frequent breaks. Pay attention to signs of severe pain and stop your game to prevent further discomfort or injury.

Summary:
Stretch your back and body regularly. Ice your back before your game. Take an over-the-counter pain medication. Listen to your body.