The Bodhisatta was once an ascetic. He had lived in the Himalayas with his young son ever since his wife died. One day during heavy rain, a wet and cold monkey saw them in their leaf hut, staying comfortable next to a fire. He knew that if he asked to come in and warm himself, he would be shooed away, so he took the clothes from a dead ascetic and sat by their hut, hoping to trick them into inviting him in.
When the son saw him, not knowing he was a monkey, he told his father there was an old ascetic there and they should let him sit by the fire. The Bodhisatta took a look and explained to his son that humans do not have faces like that; this was a monkey. And monkeys were not allowed in because they defile their homes. The Bodhisatta threw a log at the monkey, and he fled into the forest.
In the Lifetime of the Buddha
The monkey was an earlier birth of one of the Buddha’s disciples who claimed to dedicate himself to seeking salvation, but was known by other disciples to be dishonest. The Buddha told them this story so they knew that this disciple had also been deceitful in the past.
The Bodhisatta’s son was an earlier birth of the Buddha’s son.