If you sustain an injury while exercising, it's important to stop the activity and seek medical attention if needed. Rest, apply ice to reduce swelling, elevate the injured area, and follow any treatment or rehabilitation plan prescribed by a healthcare professional.