There is a concept in Islam of 'Amalın', which means causing harm to one's own body, and it is considered haram. This can include neglecting your own health.