Valmiki Ramayana Ayodhya Kanda Sarga 78 Shloka 4
Original Shlokaपूर्वमेव तु निग्राह्य स्समवेक्ष्य नयानयौ। उत्पथं यस्समारूढो राजा नार्या वशं गतः।।2.78.4।।
1 source checked for this shloka
यः who, नार्याः woman's, वशम् the influence, गतः having come under, उत्पथम् upward course, समारूढः had climbed, राजा king, नयानयौ what was just or unjust, समवेक्ष्य having considered, पूर्वमेव in the first place, निग्राह्यः could have restrained.
In the first place, the king could have restrained himself by reflecting on whether the course of action adopted by him under the influence of a woman was just or unjust.