I’m looking for a sutta which has a causal chain similar to the following:
Associating with noble friends -> Listening to Dhamma -> Right attention -> Right mindfulness -> Sense restraint -> Threefold Good Conduct -> Seven factors of enlightenment -> Release
I might be slightly off on some of the links.