In a righteous manner.
From Middle English rightwisly, from Old English rihtwīslīce; equivalent to righteous + -ly.
Practice speaking and memorizing "righteously" and many other words and sentences in English.