“Where there is uprightness, wisdom is there, and where there is wisdom, uprightness is there. To the upright there is wisdom, to the wise there is uprightness, and wisdom and goodness are declared to be the best thing in the world” (Dialogues of the Buddha p.156).
Dialogues of the Buddha {The Dîgha-Nikâya} Translated from the Pâli by T. W. Rhys Davids London, H. Frowde, Oxford University Press [1899] http://www.sacred-texts.com/bud/dob/dob-04tx.htm