Valmiki Ramayana Sundara Kanda Sarga 27 Shloka 14
Original Shlokaततस्तस्य नगस्याग्रे ह्याकाशस्थस्य दन्तिनः।।5.27.14।। भर्त्रा परिगृहीतस्य जानकी स्कन्धमाश्रिता।
1 source checked for this shloka
ततः then, जानकी Janaki, तस्य of that, नगस्य mountain's, अग्रे front, भर्त्रा by husband, परिगृहीतस्य held, आकाशस्थस्य waiting in the sky, दन्तिनः of the elephant, स्कन्धम् mounted, आश्रिता took seat.
"Then from the front of the mountain Janaki shifted to the back of the elephant held by her husband waiting in the sky.