Preached at Jetavana. The Buddha tells the monks how, before the Enlightenment, he divided his thoughts into two groups - the first being of pleasures of sense, of harm and of hurt, and the other thoughts of renunciation. He then proceeds to explain how this ultimately led to Enlightenment. M.i.114ff.