Valmiki Ramayana Yuddha Kanda Sarga 83 Shloka 14
Original Shlokaशुभेवर्त्मनितिष्ठन्तंत्वामार्यविजितेन्द्रियम् । अनर्थेभ्यो न शक्नोतित्रातुंधर्मोनिरर्थकः ।।6.83.14।।
1 source checked for this shloka
आर्य noble, शुभे virtuous, वर्त्मनि path, तिष्ठन्तम् sticking to, विजितेन्द्रियम् won the senses, त्वाम् you, धर्मःrighteous, अनर्थेभ्यः not able to protect, त्रातुम् danger, न शक्नोति not possible, निरर्थकःis useless
"O Noble Rama! If You, who have gained over senses and sticking to a virtuous path are not protected, from this calamity by righteousness, then righteousness is useless."