What does Romans 4:7 mean?
Paul is quoting from King David, a hero of the people of Israel. His purpose is to show that Old Testament Scriptures have always pointed to faith—not good works or deeds—as the path to being declared righteous by God as his gift to those who believe.David wrote these words in Psalm 32:1–2. He says that those whose lawless deeds or transgressions are forgiven—those whose sin is covered—are "blessed." In other words, they have received a good thing, as a gift of grace. This forgiveness has not been earned by good works. David makes no mention of earning or working for this result. Forgiveness cannot be earned. Forgiveness can only be given, in this case by God.
Paul is connecting David's words about forgiveness with a statement in Genesis 15:6. There, Abraham's believing God is what caused God to count him as righteous (Romans 4:3). As shown by Paul, both Abraham and David demonstrate that the person being forgiven and declared righteous has earned nothing and has been given everything.