Valmiki Ramayana Yuddha Kanda Sarga 83 Shloka 30
Original Shlokaअधर्मसंश्रितोधर्मोविनाशयतिराघव । सर्वमेतद्यथाकामंकाकुत्स्थकुरुतेनरः ।।6.83.30।।
1 source checked for this shloka
काकुत्स्थKakuthsa, राघव Raghava, अधर्मसंश्रितःfollowing adharma, धर्मःdharma, विनाशयति destruction is happening, नरः humans, एतत् in this manner, सर्वम् all, यथाकामम् as per his desire, कुरुते does
"Kakuthsa Rama! Kings followed dharma and adharma both according to context. Whether following dharma or adharma destruction is happening. Therefore, humans keep doing both as per their desire."