Baby bad sleeping

Patient: My son is 2 years old and for some what odd reason he sleeps very bad in the evening he wakes up with moanings and i don’t seem to understand why! he stretches out his legs and them seem to moan its just in the evening, during the day there is nothing wrong. Please help?