Valmiki Ramayana Yuddha Kanda Sarga 63 Shloka 8
Original Shlokaयथागमं च योराजासमयंविचिकीर्षति । बुध्यतेसचिवान्बध्यासुहृदश्चानुपश्यति ।।6.63.8।।
1 source checked for this shloka
यः he who, राजा king, यथागमं च controlling, समयं proper time, विचिकीर्षति in accordance with justice, बुध्या intelligently, सचिवान् ministers, बुध्यते thinking, सुहृदश्च with friends, अनुपश्यति understands rightly.
"The king who does his duty in time in accordance with justice and thinking intelligently with his ministers, understands rightly."