Valmiki Ramayana Kishkindha Kanda Sarga 1 Shloka 124
Original Shlokaएवं सम्बोधितस्तत्र शोकोपहतचेतनः। त्यज्य शोकञ्च मोहञ्च ततो धैर्यमुपागमत्।।4.1.124।।
1 source checked for this shloka
शोकोपहतचेतनः overwhelmed with grief, ततः later, एवम् in that way, सम्बोधितः having been addressed, शोकं च grief, मोहं च and delusion, त्यज्य setting aside, धैर्यम् patience, उपागमत् gained back.
Thus persuaded by Lakshmana, Rama who was hitherto besieged by grief and delusion, could set them aside and regain patience.