In Buddhist texts, Sumedha is a previous life of Gotama Buddha (Pāli; Sanskrit: Gautama) in which he declares his intention to become a Buddha. Buddhist texts describe that this takes place when Gotama Buddha is still a Buddha-to-be (Pali: bodhisatta, Sanskrit: bodhisattva). Traditions regard Sumedha's life as the beginning of the spiritual journey leading up to the attainment of Buddhahood by Gotama in his last life, a journey which takes place through many lifetimes. Born in a brahmin family, Sumedha begins to live as an ascetic in the mountains. One day he meets Dīpankara Buddha (Sanskrit: Dīpaṃkara) and offers his own body for him to walk over. During this sacrifice, he makes a vow that he also will be a Buddha in a future lifetime, which is confirmed by Dīpankara through a prophecy.