It is a way of life too... Just like it was righteous of Noah not only to have faith in what God required of him but to do it.
When Abraham asked if the righteous in Sodom and Gomorrah were going to be doomed along with the wicked, Abraham was asking about those who were good people living in the faith in the city. Maybe not perfectly righteously like Yeshua did when He walked the earth. But righteous in comparison...
righteousness comes in the way things are handled in life..
In order to know what God considers righteous, one needs to learn from Him.
It was the very thing that made Israel so great in the eyes of God..
but it was also their downfall.. because they thought that they could do it without His Spirit and in their own strength..
They jumped on a bandwagon before they truly knew what God was really asking of them.
Now we are in the same position, to do things our way and declare it right, or to do it His Way and know He is right.