Humans are most likely descended from a common ancestor with both gorillas and chimpanzees, rather than directly from either of these species or monkeys. Humans, gorillas, chimpanzees, and bonobos all belong to the family Hominidae, commonly known as the great apes. The last common ancestor between humans and the other great apes likely existed around 6 to 8 million years ago.
Monkeys, on the other hand, belong to a different group of primates known as simians or infraorder Simiiformes, which is a more distant branch in the primate evolutionary tree.
So, humans share a more recent common ancestor with gorillas and chimpanzees, and our evolutionary history has diverged from them over millions of years.