Romans 4:5

Amplified Bible (AMP)
But to the one who does not work [that is, the one who does not try to earn his salvation by doing good], but believes and completely trusts in Him who justifies the ungodly, his faith is [b]credited to him as righteousness (right standing with God).

Read Romans 4:5 in other translations