Judges 6:17
Its a complex question which is why I said generally.
Deuteronomy 6:16
16 You shall not put the Lord your God to the test, as you tested him at Massah.
Malachi 3:10
Bring the full tithe into the storehouse, that there may be food in my house. And thereby put me to the test, says the Lord of hosts, if I will not open the windows of heaven for you and pour down for you a blessing until there is no more need.
Isaiah 7:12
But Ahaz said, I will not ask, and I will not put the Lord to the test.