Valmiki Ramayana Ayodhya Kanda Sarga 106 Shloka 5
Original Shlokaपरावरज्ञो यश्च स्याद् यथा त्वं मनुजाधिप। स एव व्यसनं प्राप्य न विषीदितुमर्हति।।2.106.5।।
1 source checked for this shloka
मनुजाधिप O lord of men, यः who त्वं यथा like you, परावरज्ञः knower of past and future, सः that person, एव this, व्यसनम् distress, प्राप्य having obtained, विषीदितुं to lament, न अर्हति is not proper.
O lord of men, it is not proper for a person like you who knows the past and the future of human beings to feel distressed and lament over it.