One is incapable of ending suffering without directly knowing, not completely comprehending greed, without the mind not detaching from it and without abandoning it. One is capable of ending suffering by directly knowing, by fully comprehending greed, with the mind detaching from it, and by abandoning it.

Lobhapariññā sutta - Completely Comprehending Greed

This was said by the Blessed One, said by the Arahant, as I have heard:

Bhikkhus, without directly knowing, without fully comprehending greed, with the mind not detaching from it, and without abandoning it, one is incapable of ending suffering.

The Blessed One spoke on this matter. In this regard, it is said:

"Overcome by greed, through which, beings go to an unfortunate destination; Completely comprehending greed, those seeing clearly abandon it; Having abandoned it, they do not return, to this world at any time."

This matter too was spoken by the Blessed One, as I have heard.