Thiruvalluvar said this quote

To reprove a harm-doer, put him to shame by doing a good deed in return.