Ludwig van Beethoven (1770–1827) is the composer who lost his hearing and famously removed his piano's legs.
Wolfgang Amadeus Mozart (1756–1791) died at 35 with intact hearing. His final works (Requiem, Magic Flute, Clarinet Concerto) show no deafness adaptation. The confusion may stem from both being "classical composers who suffered"—but Mozart's suffering was financial/health, not auditory.
Beethoven's late works (9th Symphony, Missa Solemnis, late quartets, late sonatas) were composed entirely in silence. The piano-leg story symbolizes a creator who refused to let physical limitation silence his imagination. That's the Beethoven mythos: transcendence through will.