ABC:Proverbs 12

Verse 2
American Atheists claims the Bible is wrong about the passage (and makes the following comments (italicized).

Trusting God Proverbs 12:2 A good man obtaineth favour of the LORD: but a man of wicked devices will he condemn. Now consider the case of Job. After commissioning Satan to ruin Job financially and to slaughter his shepherds and children to win a petty bet with Satan. God asked Satan: Job 2:3 And the LORD said unto Satan, Hast thou considered my servant Job, that there is none like him in the earth, a perfect and an upright man, one that feareth God, and escheweth evil? and still he holdeth fast his integrity, although thou movedst me against him, to destroy him without cause.

The Bible makes very clear throughout that God's blessing does not always or necessarily occur during this life. There are evil people who prosper in this life, and righteous people who do not. (Ecclesiastes 7:15; 8:14) Wealth in this life is a poor determinant of ultimate wealth for eternity. There are those who make themselves poor in this life but are rich, and those who make themselves rich in this life but have nothing of value. (Proverbs 13:7) A final judgment and life after this one will set right the wrongs of this life, so that the righteous who suffered will be those in power, and the wicked who had power will be those suffering. (Luke 16:25; 6:24-25; Matthew 5:3-4; Isaiah 65:13-14; James 5:1-8)

In the case of Job, God allowed Satan to persecute him; but God ultimately blessed him and showed favor to him, blessing him with twice as much as what he had lost. (Job 41:10-12) God used Job's trials to refine him, making him even stronger as a warrior for God, and justify even greater rewards for him. (Zechariah 13:9) God uses trials to refine His servants, the way that fire is used to refine metals and make them stronger. (Malachi 3:3; Proverbs 17:3; 27:21; Jeremiah 9:7; Isaiah 1:25; 13:12) Jesus Himself was purified and refined through sufferings, to make Him the perfect leader for all time. (Hebrews 2:10; 5:8-9) God's chastening is used to make us stronger warriors for His kingdom. Christians are thus encouraged to endure suffering as faithful soldiers of Christ. (2 Timothy 2:3; Hebrews 12:5-11)

Verse 21, Divine Protection of Christians?
Patheos' Bob Seidensticker claims there is a contradiction here and makes the following comments (italicized):

Does God prevent harm to good Christians? In response to a church shooting, where good Christians were doubtless praying to God but still got shot, Christian apologist Greg Koukl pushed back against the idea that anyone should be surprised (I responded here). In fact, he assures us, Jesus promised persecution. 1 Peter 4:12-13 ¶ Beloved, think it not strange concerning the fiery trial which is to try you, as though some strange thing happened unto you: But rejoice, inasmuch as ye are partakers of Christ's sufferings; that, when his glory shall be revealed, ye may be glad also with exceeding joy. Koukl said, “There is. . . no rationale, no line of thinking that if God does exist that only good things happen to people, particularly people who believe in God, especially Christians.” In fact, the Good Book says precisely that: Proverbs 12:21 ¶ There shall no evil happen to the just: but the wicked shall be filled with mischief. Psalms 91:5-10 Thou shalt not be afraid for the terror by night; nor for the arrow that flieth by day; Nor for the pestilence that walketh in darkness; nor for the destruction that wasteth at noonday. A thousand shall fall at thy side, and ten thousand at thy right hand; but it shall not come nigh thee. Only with thine eyes shalt thou behold and see the reward of the wicked. ¶ Because thou hast made the LORD, which is my refuge, even the most High, thy habitation; There shall no evil befall thee, neither shall any plague come nigh thy dwelling. When Christians desperately praying for their lives in a church are gunned down, atheists are right to point out that this makes one question God’s existence.

The Bible makes very clear throughout that God's blessing does not always or necessarily occur during this life. There are evil people who prosper in this life, and righteous people who do not. (Ecclesiastes 7:15; 8:14) Wealth in this life is a poor determinant of ultimate wealth for eternity. There are those who make themselves poor in this life but are rich, and those who make themselves rich in this life but have nothing of value. (Proverbs 13:7) A final judgment and life after this one will set right the wrongs of this life, so that the righteous who suffered will be those in power, and the wicked who had power will be those suffering. (Luke 16:25; 6:24-25; Matthew 5:3-4; Isaiah 65:13-14; James 5:1-8)

Indeed, Christians are expected to follow Christ's example in enduring suffering (1 Peter 4:12-14). Does it really make sense for Christians to expect they will be exempted from the trials their leader, the Son of God, endured?

In the case of Job, God allowed Satan to persecute him; but God ultimately blessed him and showed favor to him, blessing him with twice as much as what he had lost. (Job 41:10-12) God used Job's trials to refine him, making him even stronger as a warrior for God, and justify even greater rewards for him. (Zechariah 13:9) God uses trials to refine His servants, the way that fire is used to refine metals and make them stronger. (Malachi 3:3; Proverbs 17:3; 27:21; Jeremiah 9:7; Isaiah 1:25; 13:12) Jesus Himself was purified and refined through sufferings, to make Him the perfect leader for all time. (Hebrews 2:10; 5:8-9) God's chastening is used to make us stronger warriors for His kingdom. Christians are thus encouraged to endure suffering as faithful soldiers of Christ. (2 Timothy 2:3; Hebrews 12:5-11)

Furthermore, a rudimentary reading of Psalms 91 shows that it is not referring to everyone, but to "He that dwelleth in the secret place of the most High... under the shadow of the Almighty." (v. 1) Verse 11 is specifically a prophecy of Jesus, so the chapter appears to be referring to Jesus specifically. (cp. Matthew 4:6; Luke 4:10-11)

Verse 22, Should We Tell Lies?
Dan Barker of FFRF claims there is a contradiction here and makes the following comments (italicized):

Should We Tell Lies? Exodus 20:16 Thou shalt not bear false witness against thy neighbour. Proverbs 12:22 ¶ Lying lips are an abomination to the LORD: but they that deal truly are his delight. vs. 1 Kings 22:23 Now, therefore, behold, the LORD hath put a lying spirit in the mouth of all these thy prophets, and the LORD hath spoken evil concerning thee. 2 Thessalonians 2:11 And for this cause God shall send them strong delusion, that they should believe a lie:

Strange as it might seem, God does allow dishonesty for the purpose of defeating wickedness, by using their own tactics against them. As it is written, "With the pure thou wilt shew thyself pure; and with the froward thou wilt shew thyself froward." (Psalms 18:26) Job observes that "He taketh the wise in their own craftiness." (Job 5:13) Jesus called Christians to be wise as serpents but harmless as doves. (Matthew 10:16) God sends punishments on the wicked for their sins. (Lamentations 3:38-41) God used lying spirits throughout the Bible to deceive those engaging in sin and idolatry that they might be punished. (cp. Ezekiel 14:7-10; Judges 9:23; 1 Kings 22:23; 2 Chronicles 18:19-22; Job 12:16-17; Isaiah 19:14; 2 Thessalonians 2:11)

Unfortunately righteous people cannot always be honest with the wicked, lest they be destroyed. Evil people do not play by the rules, and the righteous cannot always be open and honest with evil people, which is why even Jesus simply ignored evil people trying to entrap Him at times. (Matthew 26:63; 27:12; John 8:6) From a government standpoint, always speaking truthfully will result in betrayal by evil people who use espionage, allowing for the downfall of good governments unless they fight back through counter-espionage. Even righteous people in the Bible used lies and deception to avoid danger from those they considered wicked. (cp. Genesis 12:13-20; 20:1-13; 26:6-11; 34:13-26; Judges 4:19-21; 1 Samuel 21:13)

So how then can the two concepts be reconciled? False witness in Exodus 20:16 involved more than just dishonesty but distorting the truth when testifying legally (as in court of law) to harm the innocent and pervert justice. (cp. Deuteronomy 19:16-19; Exodus 23:1-8) The condemnation was not for occasional dishonesty, but using that dishonesty to destroy others without a cause. (Proverbs 3:30) As for Proverbs 12:22, lying lips are those which lie habitually to harm others without a cause, as contrasted with those that deal truthfully. (cp. Psalms 31:18,13; Proverbs 10:18; 17:7; Psalms 120:2-4) However, even righteous, ordinarily truthful people in the Bible had, at times, to use deception to avoid the traps of the wicked, as mentioned previously.