Valmiki Ramayana Yuddha Kanda Sarga 17 Shloka 41
Original Shlokaअर्थानर्थौविनिश्चित्यव्यवसायंभजेतह । गुणतस्सङ्ग्रहंकुर्याद्दोषतस्तुविसर्जयेत् ।।6.17.41।।
1 source checked for this shloka
अर्थानर्थौ: advantages and disadvantages, विनिश्चित्य: ascertaining, व्यवसायम् course of action, भजेत: follows, गुणतः by virtue, सङ्ग्रहम् take hold of, कुर्यात् act, दोषतस्तु: if faulty, विसर्जयेत् should give up.
Ascertaining advantages and disadvantages one should take the right course of action, by acting if it is virtuous and giving up if it is faulty.