The benefits of building stupas were spoken of by the buddha in the Noble Amazing Sutra:
Ananda! Any devoted noble sons and daughters who fill this entire three-thousand-fold universe with the seven precious metals and make offerings to all the stream-enterers, once-returners, non-returners, and arhats—as well as all the sangha members in the four directions—do not accumulate as much merit as someone who makes a stupa to the Tathagata—the Subduer, the Perfectly Enlightened One, the One Who Entered Mahaparinirvana— that is even the size of a churura seed, with a central column the size of a needle, an umbrella the size of a juniper leaf, and filled with grain-sized statues and mustard seed-sized relics.
Moreover, in the Analyzing Activity Sutra, the Buddha said to the brahmin son Netso:
Whoever builds the Stupa of the Tathagata will gain the eighteen benefits. These are: (1) to be born in a royal family, (2) with perfect features (3) and a beautiful body; (4) who everybody loves to see (5) and looks to as a leader; (6) with fame expanding in the ten directions, (7) beautiful cheering sounds, (8) and praised with beautiful verses; (9) very detached from the world (10) and honored by gods (11) and humans; (12) very wealthy, (13) with a long life (14) and as healthy and strong as a vajra; (15) possessing the major marks (16) and minor marks; (17) born in the upper realms; (18) and soon to enter the supreme enlightened state.
In the Noble Lotus Sutra, the Buddha said:
Whoever makes a stupa out of stones, agarwood, or sandalwood; or whoever makes a stupa with joy out of medicinal wood or even out of plain wood, earth, brick, and so on; or whoever makes a stupa by just using heaps of earth in some remote area while thinking of the Buddha; or even children who make a stupa while playing games with sand while thinking of the Victorious One; or whoever draws forms (of the Buddha)—they will all reach enlightenment.
The Manjushrimitra Root Tantra states:
(Those who want) to purify their negativities should make a stupa with their own hands—it will cleanse even the worst five obscurations. If they make 100,000 stupas, they will become a universal monarch among all the vidyadharas. Whoever contacts such a stupa will develop great wisdom and long life, and even if they die, they will be reborn in the higher realms in a royal clan, and they will never go to the lower realms. When born, their intelligence will be like a blazing sun, their intellect will become stable, and they will remember past lives. Thus it is said.
Moreover, the Noble Stainless Beams of Light Sutra states:
Noble sons and daughters! Whoever circumambulates or make offerings to a stupa will be blessed by Tathagatas, move to the supreme enlightened state through a non-returning path, and purify all of their karmic obscurations. Even if the shadow of a stupa touches birds, animals, deer, or whomever, they will not be reborn in the lower realms.
Thus, in the sutras and tantras the Buddha taught extensively about the benefits of building stupas, as well as the benefits to those who support and make contact with stupas.