Valmiki Ramayana Aranya Kanda Sarga 40 Shloka 5
Original Shlokaयस्त्यक्त्वा सुहृदो राज्यं मातरं पितरं तथा। स्त्रीवाक्यं प्राकृतं श्रुत्वा वनमेकपदे गतः।।3.40.5।।
1 source checked for this shloka
यः he who, प्राकृतम् ordinary, स्त्रीवाक्यम् woman's word, श्रुत्वा after hearing, सुहृदः friends, राज्यम् kingdom, मातरम् mother, तथा also, पितरम् father, त्यक्त्वा after leaving, एकपदे at once, वनम् to the forest, गतः went.
On hearing the casual words of a woman, (this) Rama came to the forest at once, leaving his friends, kingdom, mother and father.