The Bodhisatta was once Indra, king of the gods. At midnight a wizard used his magic powers to sneak into the palace and rape the chief queen. To catch him, the king gave her a bowl of vermillion to put a mark him, and the next night after he had his way with her, she made a handprint on his back. The king sent his men around the city looking for the rapist and found out that by day he was a sun-worshiping ascetic living in the cemetery. They surrounded him, but he flew away.
So the king banished all holy men from the kingdom. With no religious teachers around, people became savage; no longer giving alms or following the commandments and they went to hell after they died.
The Bodhisatta noticed fewer people were being born in his heaven and when he looked down on Earth and saw the reason, he knew that he alone could destroy the king’s heresy and reverse the religious decay. He took the eldest private Buddha (those who reach enlightenment on their own and do not teach the path to others) living in Nandamula Cave deep in the Himalayas and together they went and stood in the air outside the palace, the Bodhisatta taking the form of a handsome disciple.
The king went to meet them and asked why the young man venerated the old. The Bodhisatta revealed himself as Indra and said respecting religious teachers brings great merit and puts people on the path to heaven. The king realized the error of his ways. He thanked the Bodhisatta, saluted the private Buddha, and promised to do many virtuous deeds.
The Bodhisatta and the private Buddha preached to the king and told him the wizard who raped his wife was a false ascetic and he should invite the religious men back to the kingdom. The king did so, announcing it by drum around the city. The Bodhisatta and the private Buddha returned home, the later reaching nirvana soon after.
In the Lifetime of the Buddha
One day some of the Buddha’s disciples were discussing how great the Buddha was because he always acted in the benefit of the world. When the Buddha heard their discussion he told this story so they knew he had also acted in the interest of others in the past.
The king was an earlier birth of Ananda, one of the Buddha’s top disciples.