Now one has to ask whether according to Sacred Scripture if man in the state of sin or in the state of non believing is able to do any good.
Generally, sinners are described in the Bible as progressively converted as in the parable of the prodigal son (Luke 15: 11-24). The teaching of the prophets insisted that in the first preparatory steps of choosing be insisted as in Joel 1 and 2
Scripture also praises the works of those who are not part of the chosen people nor of the church.
King Nebuchadnezzar (605-562 BC) was a pagan Babylonian monarch who took the Jews into captivity (586 BC).
Daniel 4: 23-24
The command that the stump and roots of the tree are to be left means that your kingdom shall be preserved for you, once you have learned it is heaven that rules. Therefore, O king, take my advice; atone for your sins by good deeds, and for your misdeeds by kindness to the poor; then your prosperity will be long.  All this
happened to King Nebuchadnezzar.