Arthur Schopenhauer said this quote

Boredom is certainly not an evil to be taken lightly: it will ultimately etch lines of true despair onto a face. It makes beings with as little love for each other as humans nonetheless seek each other with such intensity, and in this way becomes the source of sociability.