Generally it can be said that charity begets charity and one good deed deserves another.
But if one good deed is not returned with another, then we may need to do some re-thinking.
And if we expect one good deed to be returned with another, then we may need to revise our expectations.
In the 1st reading, the prophet Jeremiah was lamenting that though he had not done anything evil, in fact he was only doing what the Lord God wanted him to do, men were plotting to harm him and inflict evil upon him.
What he was doing was a good deed, but what he got in return was "terror from every side".
It was the similar situation in the gospel when the people wanted to stone Jesus, not so much for doing good works, but for speaking the truth.
The people couldn't comprehend the truth, hence they rather not accept it, and even turned hostile and violent against it.
But whether it is doing good deeds or speaking the truth, let us ask God to guide us to do what He wants of us.
And if we face opposition and resistance, let us trust in the Lord and like what the prophet Jeremiah said: Sing to the Lord, praise the Lord, for He has delivered the soul of the needy from the hands of evil men.