Valmiki Ramayana Ayodhya Kanda Sarga 66 Shloka 7
Original Shlokaअनियोगे नियुक्तेन राज्ञा रामं विवासितम्। सभार्यं जनकश्श्रुत्वा परितप्स्यत्यहं यथा।।2.66.7।।
1 source checked for this shloka
सभार्यम् with wife, रामम् Rama, अनियोगे is an unworthy act, नियुक्तेन ordered, राज्ञा by the king, विवासितम् has been banished, श्रुत्वा having heard, जनकः Janaka, अहं यथा like me, परितप्स्यति will suffer.
Hearing the unrighteous action ordered by the king in banishing Rama and his wife king Janaka will suffer great agony like me.