Valmiki Ramayana Kishkindha Kanda Sarga 26 Shloka 4
Original Shlokaभवत्प्रसादात्सुग्रीवः पितृपैतामहं महत्। वानराणां सुदुष्प्रापं प्राप्तो राज्यमिदं प्रभो4.26.4।।
1 source checked for this shloka
प्रभो O lord, सुग्रीव: Sugriva, सुदुष्प्रापम् that which is difficult to acquire, वानराणाम् of monkeys, इदम् this, पितृपैतामहम् ancestral, महत् great, राज्यम् kingdom, भवत्प्रसादात् by your grace, प्राप्तः has obtained.
'O Lord by your grace Sugriva inherited the ancestral kingdom which would have been otherwise difficult.