Valmiki Ramayana Yuddha Kanda Sarga 64 Shloka 8
Original Shlokaनिश्श्रेयसफलावेवधर्मार्थावितरावपि । अधर्मानर्थयोःप्राप्तिःफलं च प्रत्यवायिकम् ।।6.64.8।।
1 source checked for this shloka
धर्मार्थौ virtues and worldly pleasures, इतरौअपि even other, निश्श्रेयसफलौएव only give benefit, अधर्मानर्थयोः if done in unrighteous manner with disinterest, प्रत्यवायिकम् other than prosperity, फलं च the result also, प्राप्तम् will give.
" All virtues and worldly pleasures and even otherwise give only benefit. But if done with disinterest and unrighteousness it can give a result which is other than prosperity."