And it came to pass after these things, that G-d
did test Abraham (22:1)
Said Rabbi Jonathan: A potter does not examine defective vessels, because he
cannot give them a single blow without breaking them. What then does he examine?
Only the sound vessels, for he will not break them even with many blows.
Similarly,G-d tests not the wicked but the righteous.