Valmiki Ramayana Sundara Kanda Sarga 58 Shloka 17
Original Shlokaएतच्छ्रुत्वा वचस्तस्य मैनाकस्य महात्मनः।।5.58.17।। कार्यमावेद्य तु गिरेरुद्यतं च मनो मम। तेन चाहमनुज्ञातो मैनाकेन महात्मना।।5.58.18।।
1 source checked for this shloka
महात्मनः great self, तस्य मैनाकस्य that Mainaka's, वचः words, श्रुत्वा having heard, कार्यम् task, गिरेः mountain, आवेद्य told, मम my, मनः mind, उद्यतम् to go, अहम् I, तेन to him, महात्मना the great self, मैनाकेन by Mainaka, अनुज्ञातश्च granted permission.
"When I heard Mainaka, I told him about my intention to go up. That great self Mainaka allowed me.