Imam Ibn al-Qayyim said:
“From the most harmful things to a servant is free time and being idle, because the soul doesn’t sit idle. Rather, if you don’t occupy it with that which is beneficial, it will certainly occupy you with what is harmful.”
Tariq al-Hijratayn (2/597)