Tightness along the tendons that bend your fingers can cause your fingers to get locked in a bent position (the position they would be in if you were pulling a trigger). Learn the right way to start stretching and massaging these tendons now to avoid pain, arthritis, and the need for a surgical release of the tendons.
Stretch it out, massage along the tendon, and modify the activity that caused your trouble until you can build up the strength. The tendon along your palm and finger will feel hardened when trigger finger is advancing in the injury progression, and will soften back up with the stretching and self massage. Be diligent with your efforts, because trigger finger can sometimes require surgery to release!