Repel boredom with work
Those who have nothing to do with their lives are the same people who spend most of their time spreading rumors and falsehood, mainly because their minds are devoid of beneficial thoughts:
They are content to be with those [the women] who sit behind [at home]. Their hearts are sealed up [from right guidance] so they understand not.} (Qur’an 9: 87)
When you find yourself to be idle, prepare for depression and despair, because idleness allows your mind to wander in the past, the present, and the future, with all of their difficulties. Therefore, my sincere advice to you is to perform fruitful acts instead of being idle, for idleness is a slow and veiled form of suicide.
Idleness is like the slow torture that is inflicted upon prisoners in China: they are placed under a tap, from which a drop of water falls only after every hour. During the period of waiting between drops, many of them lose their minds and are driven to insanity.
Being inactive means being negligent of one’s duties. Idleness is an expert thief and your mind is its victim.
Therefore get up now and say a prayer or read a book; praise your Lord, study, write, organize your library, fix something in your house, or benefit others so that you can put an end to your inactivity. I say this only because I sincerely wish for your betterment.
Destroy boredom by working. When you apply this simple precept alone, you will have traveled at least fifty percent of the way towards happiness. Look at farmers, carpenters, and the bread-maker, and observe how, when they are working, they recite words as melodious as the singing of birds, because they are content.