No good deed goes unpunished

After prison escapee Dirk Willems turned around to save his pursuer from drowning, he was recaptured and executed.

The phrase "No good deed goes unpunished" is a sardonic commentary on the frequency with which acts of kindness backfire on those who offer them. In other words, those who help others are doomed to suffer as a result of their helpfulness.