Bach's The Well-Tempered Clavier, Chopin's preludes move up the circle of fifths (rather than Bach's chromatic scale sequence) to create a prelude in each major and minor tonality.
What piece of Bach's did Chopin take inspiration for his preludes?
The Well-Tempered Clavier