Chujok finally loses the children and they make their way back to the palace of their grandparents, the King and Queen. When he hears their story the King is angry with Prince Vessantara but Jali explains the ultimate test of his generosity. The King finally understands and orders that Vessantara be brought back from exile. He then pays Chujok the agreed sum for ransom of his grandchildren. Chujok wastes the ransom money lavishly on wine and women and dies from over-indulgence.