I would give it a day or 2 before exercising it. Thigh muscles are huge and hard to heal. Moist heat can be very helpful. There is a product called Biofreeze, it is a little pricey, but it is the best pain rub ever. You can usually get it from a drugstore,(you may have to ask for it)a spa that offers massages often sells it, or a medical supply house.
If you have someone that can do it for you, have them stand beside you and knead the muscle gently, like making bread. You can also do it yourself, starting at the knee, thumb in, other fingers spread across your thigh, and knead gently, or if you can stand it, a little more firmly. Use some lotion or oil. Good old fashioned Epsom Salt soaks are also good for pulled muscles, just be very careful getting in and out of the tub. I hope this helps.