Psalm 111:8 (NASB)
They are performed in truth and uprightness.
What makes a deed righteous? Is it the outcome or the intent with which it was performed. The world supports "the end justifies the means" attitude towards deeds. Illicit wealth is used to fund massive social works all in the name of uplifting the poor. But God's word tells us that such deeds are not blessed by the Lord. On the contrary, a deed done out of pure motive to glorify God and serve humanity is blessed even it fails to achieve the expected outcome.