Schubert composed his Piano Sonata D. 960 just two months before his death

The Piano Sonata in B-flat major, D. 960 was composed in September 1828, just two months before Schubert’s death on November 19, 1828, making it one of his final works.