śāstrajñaśca kṛtajñaśca puruṣāntarakovidaḥ| yaḥ pragrahānugrahayoryathānyāyaṃ vicakṣaṇaḥ
He was versed in scriptures. He was grateful (to those who did him some good) and skilled in differentiating the comparative merits of men. Fair in his judgement he dispensed justice in accordance with law by reprimanding (the delinquent) and favouring (the honest).
— M.N. Dutt (1891)
Rama is versed in scriptures and grateful to those who help him. Gratitude (kṛtajñatā) is considered one of the highest virtues in the Ramayana — it binds a person to their past and prevents the arrogance of thinking they are self-made.