One is incapable of ending suffering without directly knowing, not completely understanding the all, without the mind not detaching from it and without abandoning it. One is capable of ending suffering by directly knowing, by fully understanding the all, with the mind detaching from it, and by abandoning it.
Sabbapariññā sutta - Completely Understanding All
This was said by the Blessed One, said by the Arahant, as I have heard:
"Bhikkhus, without directly knowing, not completely understanding the all, with the mind not detaching from it and without abandoning it, one is incapable of ending suffering. Indeed bhikkhus, by directly knowing, by fully understanding the all, with the mind detaching from it, and by abandoning it, one is capable of ending suffering."
The Blessed One spoke on this matter. In this regard, it is said:
"One who, having fully known everything in all respects, does not find pleasure in anything anywhere; Such a one, has completely understood the all, and has transcended all suffering."
This matter too was spoken by the Blessed One, as I have heard.