The moral lesson this fable is intended to teach is:
Those who work hard should be proud of their accomplishments.
The Ant emphasizes the importance of hard work and preparation for the future, contrasting it with the Fly's reliance on being in the company of others without contributing or preparing.