Accounts claim that toward the end of Devadatta's life, he was struck by a severe remorse caused by his past misdeeds and did indeed manage to approach the Buddha and retook refuge in the Triple Gem, dying shortly afterwards. Because of the gravity of his actions, he was condemned to suffer for several hundred millennia in Avici. However, it was also said that he would eventually be admitted into the heavens as a Pratyekabuddha due to his past merits prior to his corruption.