Joyful are people of integrity who follow the instructions of the Lord. Joyful are those who obey his laws and search for him with all their hearts. (Psalms 119:1-2)
On the supreme judicial scale of God, righteousness is the only thing with any mass to it. Man is incapable of bestowing righteousness to himself, it is a gift from God, both through imputation at salvation and impartation during sanctification. In all cases, God adds righteousness to His own scales on man's behalf (Pr 16:8-11). Gloria in excelsis Deo ("Glory to God in the highest").