Valmiki Ramayana Ayodhya Kanda Sarga 60 Shloka 21
Original Shlokaन शोच्यास्ते न चात्मनश्शोच्यो नापि जनाधिपः। इदं हि चरितं लोके प्रतिष्ठास्यति शाश्वतम्।।2.60.21।।
1 source checked for this shloka
ते they, न शोच्याः need not be pitied, आत्मनः च yourself, न not, जनाधिप अपि king also, इदम् this, चरितम् history, लोके in the world, शाश्वतम् permanently, प्रतिष्ठास्यति will endure.
You need not lament for them or for yourself or for the king. This story of Rama will endure permanently in the world.