SN 35.146. Kamma
MN 117 Mahācattārīsakasutta:...
“And what, bhikkhus, is the cessation of kamma? When one reaches liberation through the cessation of bodily action, verbal action, and mental action, this is called the cessation of kamma.
“And what, bhikkhus, is the way leading to the cessation of kamma? It is this Noble Eightfold Path; that is, right view, right resolve, right speech, right action, right lifestyle, right practice, right sati, right samadhi.
...
AN 4.237:... And what is right view? Right view is twofold, I say. There is right view that is accompanied by defilements, has the attributes of good deeds, and ripens in attachment. And there is right view that is noble, undefiled, transcendent, a factor of the path.
And what is right view that is accompanied by defilements, has the attributes of good deeds, and ripens in attachment? ‘There is meaning in giving, sacrifice, and offerings. There are fruits and results of good and bad deeds. There is an afterlife. There are duties to mother and father. There are beings reborn spontaneously. And there are ascetics and brahmins who are well attained and practiced, and who describe the afterlife after realizing it with their own insight.’ This is right view that is accompanied by defilements, has the attributes of good deeds, and ripens in attachment.
And what is right view that is noble, undefiled, transcendent, a factor of the path? It’s the wisdom—the faculty of wisdom, the power of wisdom, the awakening factor of investigation of principles, and right view as a factor of the path—in one of noble mind and undefiled mind, who possesses the noble path and develops the noble path. This is called right view that is noble, undefiled, transcendent, a factor of the path. ...
“And what is kamma that is neither dark nor bright with neither dark nor bright result, leading to the ending of kamma? Right view, right resolve, right speech, right action, right lifestyle, right practice, right sati, right samadhi. This is called kamma that is neither dark nor bright with neither dark nor bright result, leading to the ending of kamma.
“These, monks, are the four types of kamma directly realized, verified, & made known by me.”