The Jataka, Vol. III, tr. by H.T. Francis and R.A. Neil, , at sacred-texts.com
"Before the crested peacock," etc.—This story was told by the Master when at Jetavana, of certain heretics who lost their former gains and glory. For the heretics who before the Birth of Buddha received gain and honour, lost the same at his Birth, becoming like fireflies at sunrise. Their fate was discussed in the Hall of Truth. When the Master came and inquired what was the topic the Brethren were discussing in their assembly, on being told what it was, he said, "Brethren, not now only, but formerly too, before the appearance of those endowed with virtue, such as were without virtue attained to the highest gain and glory, but when those who were endowed with virtue appeared, such as were devoid of it lost their gain and glory." And with this he told a legend of bygone days.
Once upon a time when Brahmadatta was reigning in Benares, the Bodhisatta came to life as a young peacock. And when he was fully grown, he was exceedingly beautiful and lived in a forest. At that time some merchants came to the kingdom of Bāveru, bringing on board ship with them a foreign crow. At this time, it is said, there were no birds in Bāveru. The natives who from time to time came and saw this bird perched on the top of the mast, said, "Mark the colour of this bird's skin. Look at its beaked mouth at the end of its throat, and its eyes like jewel-balls." Thus singing the praises of this crow they said to these merchants, "Sirs, give us this bird. We have need of it, and you can get another in your own country."
"Then take it," they said, "at a price."
"Give it us for a single piece of money," they said.
"We will not sell it for that," said the merchants.
 Gradually increasing their offer the people said, "Give it us for a hundred pieces of money."
"It is very useful," they replied, "to us, but let there be friendship between us and you." And they sold it for one hundred pieces.
The natives took it and put it in a golden cage and fed it with various kinds of fish and meat and wild fruits. In a place where no other birds existed, a crow endowed with ten evil qualities attained the highest gain and glory. The next time these merchants came to the kingdom of Bāveru, they brought a royal peacock which they had trained to scream at the snapping of the fingers and to dance at the clapping of the hands. When a crowd had gathered together, the bird stood in the fore part of the vessel, and flapping its wings uttered a sweet sound and danced.
The people that saw it were highly delighted and said, "This king of birds is very beautiful and well-trained. Give it to us."
The merchants said, "We first brought a crow. You took that. Now we have brought this royal peacock and you beg for this too. It will be impossible to come and even mention the name of any bird in your country."
"Be content, Sirs," they said, "give this bird to us and get another in your own land."
And raising the price offered they at last bought it for a thousand pieces. Then they put it in a cage ornamented with the seven jewels and fed it on fish, flesh and wild fruits, as well as with honey, fried corn, sugar-water and the like. Thus did the royal peacock receive the highest gain and glory. From the day of his coming, the gain and honour paid to the crow fell off. And no one wanted even to look at it. The crow no longer getting food either hard or soft, with a cry of "Caw, caw," went and settled on a dunghill.
The Master, making the connexion between the two stories, in his Perfect Wisdom repeated these stanzas:
 So man to divers priests due honour paid,
Crows were with gifts of fruit and meat revered:
The sweet-voiced peacock to Bāveru came,
The crow at once was stripped of gifts and fame.
Till Buddha the full light of Truth displayed:
But when the sweet-voiced Buddha preached the law,
From heretics their gifts and praise all men withdraw.
So man to divers priests due honour paid,
After uttering these four stanzas, he thus identified the Birth: "At that time the Jain Nāthaputta was the crow, and I myself was the royal peacock."