Yōga Sūtras
Yōga Sūtra 3.14
शान्तोदिताव्यपदेश्यधर्मानुपाती धर्मी।
śāntōditāvyapadēśyadharmānupātī dharmī।
[शान्त उदित अव्यपदेश्य धर्म अनुपाती धर्मी।
śānta = peaceful; udita = arising; avyapadēśya = about to come in the future; dharma = in tune with dharma; anupātī = tuned / as per / follows; dharmī = one who follows dharma;]
When thoughts during peaceful state, aroused state, as well as those about to come in the future are all in tune with dharma, the person is said to be dharmi, one who follows dharma.