Bhagavad Gita, Chapter 13, Verse 8-12
Humility, unpretentiousness, non-injury, forbearance, uprightness, service to the teacher, purity, steadiness, self-control; the renunciation of sense-objects, and also absence of egoism; reflection on the evils of birth, death, old age, sickness and pain; non-attachment, non-identification of self with son, wife, home, and the rest, and constant even-mindedness in the occurrence of the desirable and the undesirable; unswerving devotion to Me by the Yoga of non-separation, resort to sequestered places, distaste for the society of men; constant application to spiritual knowledge, understanding of the end of true knowledge: this is declared to be knowledge, and what is opposed to it is ignorance.
This long list of real, practical qualities starts with something as basic as humility and honesty, moves through real discipline and real detachment, and closes by naming its own opposite plainly, this is knowledge, and everything else is ignorance.
Freedom from hypocrisy and simplicity ground the list in everyday integrity before it turns to steadiness, self-control, and letting go of family attachment as its own genuine skill. Even-mindedness through both wanted and unwanted events, constant devotion, and solitude round it out, then Krishna draws a real, direct line under all of it, leaving nothing ambiguous about what counts as knowledge and what doesn't.