Valmiki Ramayana Yuddha Kanda Sarga 63 Shloka 16
Original Shlokaअहितं च हिताकारंधार्ष्ट्याज्जल्पन्तियेनराः । अवेक्ष्यमन्त्रबाह्यास्तेकर्तव्याःकृत्यदूषणा:।। 6.63.16।।
1 source checked for this shloka
ये those, नराः people, हिताकारम् in wholesome grab, अहितम् not good, धार्ष्ट्यात् out of impudence, जल्पन्ति prattle, कृत्यदूषणा: mar the purpose, ते they, अवेक्ष्य examining early, मन्त्रबाह्याः keep them away from discussion, कर्तव्याः is essential duty.
"Those who tender advice, which is unwholesome but in wholesome grab, out of their impudence should be kept away from discussion examining early as they mar the purpose."