This was explained in Sāvatthi: “I will teach you, O'Bhikkhus, what is an unworthy and what is a worthy person. Therefor listen:
What, O'Bhikkhus, is an unworthy person? Here, O'Bhikkhus, a certain person upholds wrong view, wrong thought, wrong speech, wrong action, wrong livelihood, wrong effort, wrong awareness and wrong concentration, this, O'Bhikkhus, is what is called an unworthy person!
And what, O'Bhikkhus, is a worthy person? Here O'Bhikkhus, a certain person maintains right view, right thought, right speech, right action, right livelihood, right effort, right awareness and right concentration, this is, O'Bhikkhus, what is called a worthy person!