Valmiki Ramayana Sundara Kanda Sarga 16 Shloka 13
Original Shlokaयदि रामः समुद्रान्तां मेदिनीं परिवर्तयेत्। अस्याः कृते जगच्चापि युक्तमित्येव मे मतिः।।5.16.13।।
1 source checked for this shloka
रामः Rama, अस्याः कृते on account of her, समुद्रान्ताम् stretching to the ocean, मेदिनीम् land, जगच्चापि or even the whole world, परिवर्तयेद्यदि if he turns upside down, युक्तमित्येव that is justified only, मे to me, मतिः strikes my mind.
"Even if Rama turns this land stretching to the ocean upside down or even the entire world on account of her, it is justifiable, according to me.