A monk does not have to earn a living, but can get his food from alms.
However, what about a layperson? In the context of a layperson, the Buddha condemns laziness and making excuses for not working.
From Sigalovada Sutta:
And what six ways of squandering wealth are to be avoided? Young man,
heedlessness caused by intoxication, roaming the streets at
inappropriate times, habitual partying, compulsive gambling, bad
companionship, and laziness are the six ways of squandering wealth.
Also from the same sutta:
"These are the six dangers inherent in laziness: saying, 'It's too
cold,' one does not work; saying, 'It's too hot,' one does not work;
saying, 'It's too late,' one does not work; saying, 'It's too early,'
one does not work; saying, 'I'm too hungry,' one does not work;
saying, 'I'm too full,' one does not work. With an abundance of
excuses for not working, new wealth does not accrue and existing
wealth goes to waste."
From Parabhava Sutta:
The man who is fond of sleep and company, inactive and lazy, and
manifesting anger —this is the cause of his downfall.
In the sutta below, the Buddha praises the five benefits obtained from "wealth earned through his efforts & enterprise, amassed through the strength of his arm, and piled up through the sweat of his brow, righteous wealth righteously gained".
From Adiya Sutta:
"There is the case where the disciple of the noble ones — using the
wealth earned through his efforts & enterprise, amassed through the
strength of his arm, and piled up through the sweat of his brow,
righteous wealth righteously gained — provides himself with pleasure &
satisfaction, and maintains that pleasure rightly. He provides his
mother & father with pleasure & satisfaction, and maintains that
pleasure rightly. He provides his children, his wife, his slaves,
servants, & assistants with pleasure & satisfaction, and maintains
that pleasure rightly. This is the first benefit that can be obtained
from wealth.