Valmiki Ramayana Yuddha Kanda Sarga 17 Shloka 15
Original Shlokaसचनप्रतिजग्राहरावणःकालचोदितः । उच्यमानंहितंवाक्यंविपरीतइवौषधम् ।।6.17.15।।
1 source checked for this shloka
सःरावणः that Ravana, कालचोदितः impelled by death, उच्यमानम् advice tendered, हितम् good, वाक्यम् words, विपरीतः contrary to, औषधम् इव: like the medicine, नप्रतिजग्राह: would not take.
"Impelled by death Ravana would not take good words of advice tendered to him just as one who is impelled by death does not take medicine."