Valmiki Ramayana Kishkindha Kanda Sarga 4 Shloka 2
Original Shlokaभव्यो राज्यागमस्तस्य सुग्रीवस्य महात्मनः। यदयं कृत्यवान्प्राप्तः कृत्यं चैतदुपागतम्4.4.2।।
1 source checked for this shloka
महात्मनः great self, तस्य सुग्रीवस्य that Sugriva's, राज्यागमः acquisition of kingdom, भव्यः is likely to happen, यत् since, कृत्यवान् one who has done his duty, अयम् this, प्राप्तः got, एतत् this, कृतं च and has work, उपागतम् has come
The great Sugriva, thinks Hanuman, who had done his duty is likely to acquire his kingdom, because great Rama who would help in the work of Sugriva has also come.'