Bad times are named "bad" for a reason of course, but there are many sayings - sayings being based on human observations throughout history - along the lines of "every cloud has a silver lining".
One that conceptually rhymes with the "bad times lead to good people" saying is "bad manners lead to good laws".
One that conceptually rhymes with the "bad times lead to good people" saying is "bad manners lead to good laws".