Psalm 4:3 But know that the LORD hath set apart him that is godly for himself: The LORD will hear when I call unto him.
I am godly because He made me godly. I am godly because He declared me so based on His own sacrifice on the cross. All I did to become godly was trust Him. I believed and that was it.
Now in Christ I have been set apart for Him. That is how we become godly. We are in Christ who died for us. In Christ we have great and wonderful promises.
Since we are His, godly, and in Christ we can know that He hears and answers prayers. He saved us by His grace. He gave us eternal life. He declared us godly and holy. We are set aside for Him.