I have heard that on one occasion the Blessed One was staying near Savatthi in Jeta's Grove, Anathapindika's monastery. There he addressed the monks, "Monks!"

"Yes, lord," the monks replied.

The Blessed One said: "Monks, I will teach you the analysis of the six sense media. Listen, and pay close attention. I will speak."

"Yes, lord," the monks replied.

The Blessed One said: "The six internal sense-media should be known. The six external sense-media should be known. The six classes of consciousness should be known. The six classes of contact should be known. The eighteen explorations for the intellect should be known. The thirty-six states to which beings are attached 1 should be known. With regard to them, depending on this, abandon that. There are three frames of reference that a noble one cultivates, cultivating which he is a teacher fit to instruct a group. Among master trainers, he is said to be the unexcelled trainer of those people fit to be tamed. This is the summary of the analysis of the six sense-media.

"'The six internal sense-media should be known': thus was it said. And in reference to what was it said? The eye-medium, the ear-medium, the nose-medium, the tongue-medium, the body-medium, the intellect-medium. 'The six internal sense-media should be known': thus was it said. And in reference to this was it said.

"'The six external sense-media should be known': thus was it said. And in reference to what was it said? The form-medium, the sound-medium, the aroma-medium, the flavor-medium, the tactile-sensation-medium, the idea-medium. 'The six external sense-media should be known': thus was it said. And in reference to thus was it said.

"'The six classes of consciousness should be known': thus was it said. And in reference to what was it said? Eye-consciousness, ear-consciousness, nose-consciousness, tongue-consciousness, body-consciousness, intellect-consciousness. 'The six classes of consciousness should be known': thus was it said. And in reference to thus was it said.

"'The six classes of contact should be known': thus was it said. And in reference to what was it said? Eye-contact, ear-contact, nose-contact, tongue-contact, body-contact, intellect-contact. 'The six classes of contact should be known': thus was it said. And in reference to this was it said.

"'The eighteen explorations for the intellect should be known': thus was it said. And in reference to what was it said? Seeing a form via the eye, one explores a form that can act as the basis for happiness, one explores a form that can act as the basis for unhappiness, one explores a form that can act as the basis for equanimity. Hearing a sound via the ear ... Smelling an aroma via the nose ... Tasting a flavor via the tongue ... Feeling a tactile sensation via the body ... Cognizing an idea via the intellect, one explores an idea that can act as the basis for happiness, one explores an idea that can act as the basis for unhappiness, one explores an idea that can act as the basis for equanimity. The eighteen explorations for the intellect should be known': thus was it said. And in reference to this was it said.

"'The thirty-six states to which beings are attached should be known': thus was it said. And in reference to what was it said? Six kinds of household joy & six kinds of renunciation joy; six kinds of household distress & six kinds of renunciation distress; six kinds of household equanimity & six kinds of renunciation equanimity.

"And what are the six kinds of household joy? The joy that arises when one regards as an acquisition the acquisition of forms cognizable by the eye — agreeable, pleasing, charming, endearing, connected with worldly baits — or when one recalls the previous acquisition of such forms after they have passed, ceased, & changed: That is called household joy. (Similarly with sounds, smells, tastes, tactile sensations, & ideas.)

"And what are the six kinds of renunciation joy? The joy that arises when — experiencing the inconstancy of those very forms, their change, fading, & cessation — one sees with right discernment as it actually is that all forms, past or present, are inconstant, stressful, subject to change: That is called renunciation joy. (Similarly with sounds, smells, tastes, tactile sensations, & ideas.)

"And what are the six kinds of household distress? The distress that arises when one regards as a non-acquisition the non-acquisition of forms cognizable by the eye — agreeable, pleasing, charming, endearing, connected with worldly baits — or when one recalls the previous non-acquisition of such forms after they have passed, ceased, & changed: That is called household distress. (Similarly with sounds, smells, tastes, tactile sensations, & ideas.)

"And what are the six kinds of renunciation distress? The distress coming from the longing that arises in one who is filled with longing for the unexcelled liberations when — experiencing the inconstancy of those very forms, their change, fading, & cessation — he sees with right discernment as it actually is that all forms, past or present, are inconstant, stressful, subject to change and he is filled with this longing: 'O when will I enter & remain in the dimension that the noble ones now enter & remain in?' This is called renunciation distress. (Similarly with sounds, smells, tastes, tactile sensations, & ideas.)

"And what are the six kinds of household equanimity? The equanimity that arises when a foolish, deluded person — a run-of-the-mill, untaught person who has not conquered his limitations or the results of action 2 & who is blind to danger 3 — sees a form with the eye. Such equanimity does not go beyond the form, which is why it is called household equanimity. (Similarly with sounds, smells, tastes, tactile sensations, & ideas.)

"And what are the six kinds of renunciation equanimity? The equanimity that arises when — experiencing the inconstancy of those very forms, their change, fading, & cessation — one sees with right discernment as it actually is that all forms, past or present, are inconstant, stressful, subject to change: This equanimity goes beyond form, which is why it is called renunciation equanimity. (Similarly with sounds, smells, tastes, tactile sensations, & ideas.)

"'The thirty-six states to which beings are attached should be known': thus was it said. And in reference to this was it said.

"'With regard to them, depending on this, abandon that': thus was it said. And in reference to what was it said?

"Here, by depending & relying on the six kinds of renunciation joy, abandon & transcend the six kinds of household joy. Such is their abandoning, such is their transcending. By depending & relying on the six kinds of renunciation distress, abandon & transcend the six kinds of household distress. Such is their abandoning, such is their transcending. By depending & relying on the six kinds of renunciation equanimity, abandon & transcend the six kinds of household equanimity. Such is their abandoning, such their transcending.

"By depending & relying on the six kinds of renunciation joy, abandon & transcend the six kinds of renunciation distress. Such is their abandoning, such is their transcending. By depending & relying on the six kinds of renunciation equanimity, abandon & transcend the six kinds of renunciation joy. Such is their abandoning, such their transcending.

"There is equanimity coming from multiplicity, dependent on multiplicity; and there is equanimity coming from singleness, dependent on singleness.

"And what is equanimity coming from multiplicity, dependent on multiplicity? There is equanimity with regard to forms, equanimity with regard to sounds...smells...tastes...tactile sensations [& ideas: this word appears in one of the recensions]. This is equanimity coming from multiplicity, dependent on multiplicity.

"And what is equanimity coming from singleness, dependent on singleness? There is equanimity dependent on the dimension of the infinitude of space, equanimity dependent on the dimension of the infinitude of consciousness... dependent on the dimension of nothingness... dependent on the dimension of neither perception nor non-perception. This is equanimity coming from singleness, dependent on singleness.

"By depending & relying on equanimity coming from singleness, dependent on singleness, abandon & transcend equanimity coming from multiplicity, dependent on multiplicity. Such is its abandoning, such its transcending.

"By depending & relying on non-fashioning, 4 abandon & transcend the equanimity coming from singleness, dependent on singleness. Such is its abandoning, such its transcending.

"'Depending on this, abandon that': thus was it said. And in reference to this was it said.

"'There are three frames of reference that a noble one cultivates, cultivating which he is a teacher fit to instruct a group': thus was it said. And in reference to what was it said?

"There is the case where the Teacher — out of sympathy, seeking their well-being — teaches the Dhamma to his disciples: 'This is for your well-being, this is for your happiness.' His disciples do not listen or lend ear or apply their minds to gnosis. Turning aside, they stray from the Teacher's message. In this case the Tathagata is not satisfied nor is he sensitive to satisfaction, yet he remains untroubled, mindful, & alert. This is the first frame of reference that a noble one cultivates, cultivating which he is a teacher fit to instruct a group.

"Furthermore, there is the case where the Teacher — out of sympathy, seeking their well-being — teaches the Dhamma to his disciples: 'This is for your well-being, this is for your happiness.' Some of his disciples do not listen or lend ear or apply their minds to gnosis. Turning aside, they stray from the Teacher's message. But some of his disciples listen, lend ear, & apply their minds to gnosis. They do not turn aside or stray from the Teacher's message. In this case the Tathagata is not satisfied nor is he sensitive to satisfaction; at the same time he is not dissatisfied nor is he sensitive to dissatisfaction. Free from both satisfaction & dissatisfaction, he remains equanimous, mindful, & alert. This is the second frame of reference...

"Furthermore, there is the case where the Teacher — out of sympathy, seeking their well-being — teaches the Dhamma to his disciples: 'This is for your well-being, this is for your happiness.' His disciples listen, lend ear, & apply their minds to gnosis. They do not turn aside or stray from the Teacher's message. In this case the Tathagata is satisfied and is sensitive to satisfaction, yet he remains untroubled, mindful, & alert. This is the third frame of reference that a noble one cultivates, cultivating which he is a teacher fit to instruct a group.

"'There are three frames of reference that a noble one cultivates, cultivating which he is a teacher fit to instruct a group': thus was it said. And in reference to this was it said.

"'Among master trainers, he is said to be the unexcelled trainer of those people fit to be tamed': thus was it said. And in reference to what was it said?

"Steered by the elephant trainer, the elephant to be tamed runs in only one direction: east, west, north, or south. Steered by the horse trainer, the horse to be tamed runs in only one direction: east, west, north, or south. Steered by the ox trainer, the ox to be tamed runs in only one direction: east, west, north, or south.

"But steered by the Tathagata — worthy and rightly self-awakened — the person to be tamed fans out in eight directions.

"Possessed of form, he/she sees forms. This is the first direction.

"Not percipient of form internally, he/she sees forms externally. This is the second direction.

"He/she is intent only on the beautiful. This is the third direction.

"With the complete transcending of perceptions of [physical] form, with the disappearance of perceptions of resistance, and not heeding perceptions of diversity, [perceiving,] 'Infinite space,' he/she enters and remains in the dimension of the infinitude of space. This is the fourth direction.

"With the complete transcending of the dimension of the infinitude of space, [perceiving,] 'Infinite consciousness,' he/she enters and remains in the dimension of the infinitude of consciousness. This is the fifth direction.

"With the complete transcending of the dimension of the infinitude of consciousness, [perceiving,] 'There is nothing,' he/she enters and remains in the dimension of nothingness. This is the sixth direction.

"With the complete transcending of the dimension of nothingness, he/she enters and remains in the dimension of neither perception nor non-perception. This is the seventh direction.

"With the complete transcending of the dimension of neither perception nor non-perception, he/she enters and remains in the cessation of perception and feeling. This is the eighth direction.

"Steered by the Tathagata — worthy and rightly self-awakened — the person to be tamed fans out in eight directions.

"'Among master trainers, he (the Tathagata) is said to be the unexcelled trainer of those people fit to be tamed': thus was it said. And in reference to this was it said."

That is what the Blessed One said. Gratified, the monks delighted in the Blessed One's words.