Shiva Purana
मनसः परिणामोऽयं सुखदुःखोपलक्षणः ॥ ज्ञानमेव परं ब्रह्म ज्ञानं तत्त्वाय कल्पते ॥ ३८ ॥
Happiness and misery constitute only a temporary transformation of the mind. But knowledge is the greatest Brahman. Knowledge is conducive to the understanding of reality.
english translation
manasaH pariNAmo'yaM sukhaduHkhopalakSaNaH ॥ jJAnameva paraM brahma jJAnaM tattvAya kalpate ॥ 38 ॥
hk transliteration by Sanscript