Valmiki Ramayana Ayodhya Kanda Sarga 1 Shloka 27
Original Shlokaश्रैष्ठ्यं शास्त्रसमूहेषु प्राप्तो व्यामिश्रकेषु च। अर्थधमौ च सङ्गृह्य सुखतन्त्रो न चालसः।।2.1.27।।
1 source checked for this shloka
शास्त्रसमूहेषु in scriptures, व्यामिश्रकेषु च also in the mutually interconnected (and which are mutually contradictory) branches of learning, श्रैष्ठ्यम् proficiency, प्राप्तः obtained, अर्थधर्मौ in artha and dharma, सङ्गृह्य having grasped, सुखतन्त्रः sought pleasure, अलसः न not indolent.
He obtained proficiency in scriptures and interconnected (mutually contradictory) branches of learning. Only after having grasped the (philosophy of) artha (statecraft) and dharma (righteousness), he sought pleasure. He was never indolent.