the group of apes least related to humans, that contains 16 species of gibbon apes; these apes spend a lot of time in the trees but can walk on two legs on the ground.

https://en.wikipedia.org/wiki/Ape#Great_and_lesser

Human Origins of Sleep

Scientists hypothesize that, over the course of human evolution, sleep patterns have changed as to benefit the development of high intelligence. Groups of apes that evolved earlier are thought to show sleep habits or patterns that also evolved earlier. For example, lesser apes slept on branches or on other temporary locations. This type of rest did not allow for long durations of sleep because the locations were vulnerable to predators or to other environmental disturbances.

Secrets of Sleep

Sisi Gao Patrick McGurrin
You sleep every night, but do you know what happens when your body sleeps or why we sleep the way we do?
Subscribe to Lesser apes