Simplest method ever - rest.
The pain is muscle damage, you have to wait for healing. You can use baths etc to help the pain a little, but if you work through it you'll make it worse.
Once it's stopped hurting then slowly increase your exercise over time as this will increase muscle strength and stop the damage occurring.