[336] And how, bhikkhus, is there restraint (saṃvara)? Here, bhikkhus, a bhikkhu, having seen a form (rūpa) with the eye, is not intent upon a pleasing form and is not repelled by a displeasing form; he dwells with mindfulness of the body established (upaṭṭhitakāyasati), with a measureless mind (citta), and he understands as it really is (yathābhūta) that liberation of mind (cetovimutti) and liberation by wisdom (paññāvimutti) wherein those arisen evil, unwholesome dhammas cease without remainder. … Having tasted a taste with the tongue … Having cognized a mental phenomenon (dhamma) with the mind, he is not intent upon a pleasing mental phenomenon and is not repelled by a displeasing mental phenomenon; he dwells with mindfulness of the body established, with a measureless mind, and he understands as it really is that liberation of mind and liberation by wisdom wherein those arisen evil, unwholesome dhammas cease without remainder. It is in this way, bhikkhus, that there is restraint.
English translation from the Pali (Siam Raṭṭha edition) — under review, not for citation.