A potter does not examine defective vessels, because a single blow would break 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.
Midrash Rabbah