If your hips feel tight, your shoulders do not move like they used to, or your squat seems to stop somewhere your brain did not authorize, you probably do not need to give up strength training. You may simply need to start treating mobility as part of getting stronger.
Learn how to tell the difference between normal muscle soreness, healthy fatigue, and pain after exercise so you can train smarter and avoid injury after 40.