Valmiki Ramayana Ayodhya Kanda Sarga 17 Shloka 8
Original Shlokaपितामहैराचरितं तथैव प्रपितामहैः।।2.17.8।। अद्योपादाय तं मार्गमभिषिक्तोऽनुपालय।
1 source checked for this shloka
अद्य today, अभिषिक्तः consecrated, पितामहैः by your grandfather, तथैव also, प्रपितामहैः by greatgrandfathers, आचरितम् followed by them, तं मार्गम् that path, उपादाय after adopting (acquiring), अनुपालय you may rule the kingdom.
(They said) Consecrated today, rule the kingdom by adopting the same path followed by your grandfathers and greatgrandfathers.