The Charaka Samhita addressed sleep in the chapter on Dinacharya. Charaka didn't just prescribe how long to sleep or when. He specified position. He and Sushruta both described the physiological effects of sleeping in different orientations, with specific recommendations based on the patient's constitution and condition.
Sleeping on the left side was recommended for digestion. Charaka's reasoning: the stomach sits slightly left of center in the body, and its outlet sits to the right. In the left lateral position, food moves naturally with gravity toward the outlet. In the right lateral position, it works against it. He was also aware that the lymphatic drainage system runs primarily on the left side of the body, and that left-side sleeping supports its function.
Sushruta noted that right-side sleeping was associated with better cardiac function in patients with certain heart conditions, the heart sits left of center, and right-side sleeping reduces the mechanical pressure on it. He was careful about who he prescribed this to.
Sleeping on the back was noted to increase the tendency toward respiratory obstruction, what we would now call sleep apnea or snoring, and was associated in Ayurvedic texts with increased vata disturbance: lighter, more fragmented sleep, more vivid dreams, a sense of not having fully rested. Charaka specifically advised against it for patients already presenting with vata excess.
Modern sleep research confirms all of this with precision.
Left lateral position: associated with better gastric emptying, reduced acid reflux, improved lymphatic drainage, and for pregnant women, significantly better uterine blood flow. The left lateral position is now standard medical recommendation for reflux and the third trimester of pregnancy. Charaka's recommendation is two and a half thousand years old.
Right lateral position: in patients with heart failure, reduces cardiac output slightly compared to left side, which is why the research broadly recommends left lateral for cardiac patients. For healthy people, right side is associated with slightly reduced sleep apnea compared to supine.
Supine (on the back): associated with increased sleep apnea and snoring due to the tongue and soft palate falling backward. Also increases acid reflux in people prone to it. For people without these issues, it's mechanically neutral for the spine if supported. Modern orthopedics is not opposed to it. But Charaka's concern about respiratory disruption has been validated.
Prone (on the stomach): puts the cervical spine in rotation for hours, associated with neck pain and nerve compression, and makes full diaphragmatic breathing impossible. No ancient tradition recommended it. Modern sleep medicine doesn't either.
If you sleep on your right side and tend toward reflux: move to your left. If you sleep on your back and snore: move to your side. If you sleep on your stomach and wake with neck pain: the answer is in the question.
The position you spend eight hours in is not a trivial variable. Charaka knew this and said so. The precision with which he described it is the precision of someone who had seen enough cases to know that position changed results.