Ramayana
शुभाशुभानि वाक्यानि यान्याहुः पुरवासिनः । श्रुत्वेदानीं शुभं कुर्यां नकुर्यामशुभानि च ॥ 7-43-10 ॥
Having now heard the words, both good and ill, that the city-dwellers speak, I may do what is good and refrain from doing what is ill.
english translation