Valmiki Ramayana Ayodhya Kanda Sarga 1 Shloka 22
Original Shlokaधर्मकामार्थतत्त्वज्ञः स्मृतिमान्प्रतिभानवान्। लौकिके समयाचारे कृतकल्पो विशारदः।।2.1.22।।
1 source checked for this shloka
धर्मकामार्थतत्त्वज्ञः knower of true nature of dharma, artha and kama, स्मृतिमान् of (sharp) memory, प्रतिभानवान् of great genius, लौकिके समयाचारे in social practices and customs, कृतकल्पः accomplished in Kalpa (vedic rituals), विशारदः highly skilled.
He knew the true nature of dharma, artha and kama. With a sharp memory, he was a genius. He was highly skilled in accomplishing tasks related to social practices and customs.