I recently saw in a (Chassidic) sefer that the concept of "Hashem intended to make the world out of justice, but saw that it wouldn't last, so made it out of mercy" (Rashi on Bereshit) means that Hashem didn't intend to send us Tzaddikim, but saw that we needed them, so thus He verily did.
I also know of the concept of the 974 generations that were not created because they would not accept the Torah. Adam was different because one his offshoots would indeed accept it. They did so in the 26th generation since Adam, so the total is 1000 generations.
My question is: are there any sources that connect these two ideas? Specifically, the Tzaddikim approach was only utilised starting from Adam, and 975th generation? The argument being that Hashem actually did give His creations a chance with the din approach, but set a time limit on that, and invoked the rachamim approach in time to make sure no more than 1000 generations will go by without accepting Torah?