Valmiki Ramayana Aranya Kanda Sarga 40 Shloka 9
Original Shlokaसम्पृष्टेन तु वक्तव्यं सचिवेन विपश्चिता। उद्यताञ्जलिना राज्ञे य इच्छेद्भूतिमात्मनः।।3.40.9।।
1 source checked for this shloka
यः whoever, आत्मनः his, भूतिम् riches, इच्छेत् wants, सम्पृष्टेन by him when asked, विपश्चिता by a wise man, सचिवेन by a minister, उद्यताञ्जलिना by him with folded palms, राज्ञे to the king, वक्तव्यम् be said.
A wise counsellor should give advice to the king only when his opinion is sought and that too with folded hands, if he wishes his own prosperity.