Having settled in a cave there in the middle of three peaks, he covered himself in the robe he had received from the Buddha. The texts then state he took a vow that his body would stay there until the arriving of Maitreya Buddha, which is an uncountable number of years. His body would not decay in that time, but become visible and disintegrate in the time of Maitreya Buddha. Though Mahākāśyapa died after the vow, his body remained intact according to his resolution. The three mountain peaks then closed in on the body. Later, King Ajātaśatru heard about the news of Mahākāśyapa's passing, and fainted of grief. He wanted to visit Mahākāśyapa once more. Ānanda and King Ajātaśatru went to the mountain, which slightly opened, just enough for the two to see Mahākāśyapa's body. In the Mūlasarvāstivāda discipline and the "Aśokāvadāna", the king wanted to cremate the body, but Ānanda told him it would remain until the time of Maitreya Buddha. When they left, the mountain closed up again. Later, emperor Aśoka would also visit the mountain with the monk Upagupta, after the latter took him to see the "stūpa" of the Buddha's disciples.