Pañcakaṅga asks Udāyī (Paṇḍita Udāyī, says MA.ii.629) how many kinds of feelings the Buddha mentions. Udāyi answers that there are three:
Pañcakaṅga, however, insists that there are but two: pleasant and unpleasant. Ānanda, overhearing the conversation, reports it to the Buddha, who says that both Pañcakaṅga and Udāyi are correct because he himself classified feelings in various ways; sensual pleasures might be pleasant, but are not the highest pleasures; far better and more excellent are the pleasures enjoyed by a monk who develops the four jhānas, the plane of infinity of consciousness and the plane of nought.
M.i.396 ff; the Sutta is repeated at S.iv.223 ff., under the name of Pañcakaṅga Sutta.