Unfortunately, injuries are a part of athletics. They are also a part of living and of life.
Obviously, prevention (stretching, strengthening, massage, rest, etc) is the best way to avoid injuries. But sometimes, no matter how well you have "prevention-ed", injuries still happen. In this case, there are two ways you can go about healing your injury.
1.) Take some IB Profen, and call it good. Option #1 people continue their activities despite the pain/injury. They half-ass the activity because it hurts, and they half-ass their healing by doing the activity. In this instance the injury lingers. It could take days, weeks or even months to recover from this at one time, not so bad injury.
2.) Rest until injury no longer hurts. Option #2 people understand they would rather rest/heal today to exercise tomorrow, and the day after, all while being pain free. In this instance, the injury has time to recover and to heal and the overall duration of the injury is shorter.
Injuries are your body's way of telling you something is not right. Take time to listen what your body is saying and take the necessary measures to fix that problem so it never hinders you again.