Dhammapada · 15.12
Tasmā hi dhīrañca paññañca bahussutañca, dhorayhasīlaṃ vatavantamariyaṃ;Taṃ tādisaṃ sappurisaṃ sumedhaṃ, bhajetha nakkhattapathaṃva candimā.
Tasma hi dhiranca pannanca bahussutanca, dhorayhasilam vatavantamariyam; Tam tadisam sappurisam sumedham, bhajetha nakkhattapathamva candima.
Therefore, the steady, wise, learned, vow-keeping, noble one — such a noble person, deeply intelligent — follow them, as the moon follows the path of the constellations.
— Dhammapada 15.12
Source: Pali text from the Khuddaka Nikāya of the Pali Canon (oldest extant Buddhist scripture, compiled c. 3rd century BCE). Public-domain English readings drawn from F. Max Müller's translation in Sacred Books of the East, Vol X (1881) and the Buddhist Publication Society's freely-licensed Acharya Buddharakkhita rendering.