During the first few days after the injury, rest the strained muscle and apply ice to the affected area. You may also take anti-inflammatory medicine to reduce the pain and swelling. As the pain gradually decreases, you can apply a warm compress. You can also perform light stretching exercises to increase circulation in the injured area.