The book of Ecclesiastes is an exploration of the meaning of life as told by a preacher king, a son of David. As he explains life, he points out the many ways that we waste our time chasing after fruitless activities. He calls it chasing the wind.
Verses 4-6 address it most directly:
4 I saw that all labor and all skillful work is due to one person’s jealousy of another. This too is futile and a pursuit of the wind.
5 The fool folds his arms
and consumes his own flesh.
6 Better one handful with rest
than two handfuls with effort and a pursuit of the wind.