Valmiki Ramayana Bala Kanda Sarga 41 Shloka 10
Original Shlokaतस्य तद्वचनं श्रुत्वा सर्वानेव दिशागजान्। यथाक्रमं यथान्यायं प्रष्टुं समुपचक्रमे।।1.41.10।।
1 source checked for this shloka
तस्य his (elephant's), तत् वचनम् those words, श्रुत्वा having listened to, सर्वानेव all of them, दिशागजान् elephants of the quarters, यथाक्रमम् successively, यथान्यायम् with due respect, प्रष्टुम् to enquire, उपचक्रमे commenced.
Having listened to the words of the elephant, Anshuman started enquring the well being of each of the guardians (elephants) of the quarters successively with due respect: