Some 2750 years ago Isaiah said be righteous.
When you spread forth your hands, I will hide my eyes from you; even though you make many prayers, I will not listen; your hands are full of blood.
Wash yourselves; make yourselves clean; remove the evil of your doings from before my eyes; cease to do evil learn to do good; seek justice , correct oppression; defend the fatherless, plead for the widow.
So that is an answer. Do good, be just, defend those without defense, plead for those who have no one to speak for them. All those many years ago it was a good answer, and it still is.
It is not the only answer.
But It's a start.