(Psalms 139:23 KJV) Search me, O God, and know my heart: try me, and know my thoughts:What I had not done in my memory is read the verse in context. The repeated word before this verse: hatred
The Psalmist is writing about how he hates those who hate God. He confesses these feelings and then asks God to check his attitude. Is his hatred sin? There does not seem to be any indication that it is.
This is not an invitation to violence toward people we disagree with or our pagan culture. It does point out that strong feelings against those who reject and mock God is a real possibility.
homo unius libri