"There are these three trainings. Which three? The training in heightened virtue, the training in heightened mind, the training in heightened discernment.
"And what is the training in heightened virtue? There is the case where a monk is virtuous. He dwells restrained in accordance with the Patimokkha, consummate in his behavior & sphere of activity. He trains himself, having undertaken the training rules, seeing danger in the slightest fault. This is called the training in heightened virtue.
"And what is the training in heightened mind? There is the case where a monk — quite withdrawn from sensuality, withdrawn from unskillful [mental] qualities — enters & remains in the first jhana: rapture & pleasure born from withdrawal, accompanied by directed thought & evaluation. With the stilling of directed thoughts & evaluations, he enters & remains in the second jhana: rapture & pleasure born of composure, unification of awareness free from directed thought & evaluation — internal assurance. With the fading of rapture, he remains equanimous, mindful, & alert, and senses pleasure with the body. He enters & remains in the third jhana, of which the Noble Ones declare, 'Equanimous & mindful, he has a pleasant abiding.' With the abandoning of pleasure & pain — as with the earlier disappearance of elation & distress — he enters & remains in the fourth jhana: purity of equanimity & mindfulness, neither pleasure nor pain. This is called the training in heightened mind.
"And what is the training in heightened discernment? There is the case where a monk, through the ending of the mental fermentations, enters & remains in the fermentation-free awareness-release & discernment-release, having known & made them manifest for himself right in the here & now. This is called the training in heightened discernment.
"These are the three trainings."
See also: AN 3.88