1 Chronicles 29:17bachan
"Since I know, O my God, that You try the heart and delight in uprightness, I, in the integrity of my heart, have willingly offered all these {things;} so now with joy I have seen Your people, who are present here, make {their} offerings willingly to You.
David says God tries the heart and delights in uprightness.
1 Corinthians 10:9ekpeirazō
Nor let us try the Lord, as some of them did, and were destroyed by the serpents.
Warns against trying the Lord, recalling Israel's punishment by serpents.