While leg pressing your abdominal muscles must have exerted more force and so you got a muscle pull there...
Reduce weight while doing leg presses...
Also ask your gym trainer to give you stretching for abdominal muscles...
Next Steps
you can meanwhile apply ice pack over painful area for 10 min twice a day...
To whom I should consult
About the same problem can't sleep and inside on upper right of stomach and back
...Read More
Disclaimer : The content is not intended to be a substitute for professional medical advice, diagnosis, or treatment. Always seek the advice of your physician or other qualified health provider with any questions you may have regarding your medical condition. Never disregard professional medical advice or delay in seeking it because of something you have read on this website.