Whether in the past, future, or at present, any ascetics or brahmins who are mighty and powerful have attained such might and power through the development and frequent practice of the four bases of psychic ability.

Paṭhamasamaṇabrāhmaṇa sutta - Ascetics and Brahmins (First)

"Bhikkhus, any ascetics or brahmins in the past who were mighty and powerful, they all attained such might and power through the development and frequent practice of the four bases of psychic ability. Any ascetics or brahmins in the future who will be mighty and powerful, they too will attain such might and power through the development and frequent practice of the four bases of psychic ability. Any ascetics or brahmins in the present who are mighty and powerful, they too have attained such might and power through the development and frequent practice of the four bases of psychic ability.

What four?

Here, bhikkhus, a bhikkhu develops the basis of psychic ability that is endowed with collectedness arising from aspiration and accompanied by intentional effort, develops the basis of psychic ability that is endowed with collectedness arising from energy and accompanied by intentional effort, develops the basis of psychic ability that is endowed with collectedness arising from [purification of] mind and accompanied by intentional effort, and develops the basis of psychic ability that is endowed with collectedness arising from investigation and accompanied by intentional effort.

Bhikkhus, any ascetics or brahmins in the past who were mighty and powerful, they all attained such might and power through the development and frequent practice of these very four bases of psychic ability. Any ascetics or brahmins in the future who will be mighty and powerful, they too will attain such might and power through the development and frequent practice of these very four bases of psychic ability. Any ascetics or brahmins in the present who are mighty and powerful, they too have attained such might and power through the development and frequent practice of these very four bases of psychic ability."