In the texts on discipline from the Mūlasarvāstivāda tradition, it says he also went to pay his respects to the Buddha's relics. In several texts, he attempted to visit King Ajātaśatru, but the king was asleep. Mahākāśyapa then cleaned the monastery, and proceeded to Kukkuṭapāda, the place of burial he had selected. He gave a final teaching to the lay people, and performed supernatural accomplishments. 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. The accounts then continue that in the future, in the time of Maitreya Buddha, the mountain opens upon his visit, in "the way a "cakravartin" opens a city gate". However, people in Maitreya Buddha's time are much taller than during the time of Gautama Buddha. In one text, Maitreya Buddha's disciples are therefore contemptuous of Mahākāśyapa, whose head is no larger than an insect to them.