The movie that comes to mind is "The Shawshank Redemption." Despite receiving critical acclaim, it did not perform well at the box office initially. Over time, however, it gained a strong following and is now considered one of the greatest films of all time.