Psalm 11:5
New American Standard Bible
5 The Lord tests the righteous and the wicked,
And His soul hates one who loves violence.
https://www.biblegateway.com/passage/?search=Psalm%2011%3A5&version=NASB
Yes, and the Lord knows how to rescue the godly from temptation, and to keep the unrighteous under punishment for the day of judgment, 2 Peter 2:9.