I would suggest you to get examined from orthopedic surgeon. There can be two possibilities. Either it is muscle pull or fatigue
. It is involving hamstrings muscles. So you can get relieved by stretching exercise and hot water fomentation. Also I would recommend you to get MRI
of the spine to see is there is any nerve
compression is present.