Islam teaches us to walk the middle ground.
There are two extremes:
1) A person totally neglects the world and engages in ibadah all the time. This is monasticism (rahbaaniyyat) and is forbidden.
2) A person totally neglects Allah (swt) and Islam and devotes all his energies to worldly matters. This is abaahiyyat and this is also forbidden.
So one needs to walk the middle ground."