Is the Hajj of one who had never provided maintenance for his wife and children considered valid?
Providing maintenance to a wife and child is obligatory. Based on the word of God:
"وعلى المولود له رزقهن وكسوتهن بالمعروف"
Which means: "And it is an obligation for a father to provide for his wife in a good manner". (Al-Baqarah: 233)
From the Islamic law point of view, for a person who performs Hajj yet does not provide a living for his wife and children, his Hajj is still valid if all conditions and pillars pf Hajj have been fulfilled. However, he is considered as committing a sin for neglecting his responsibilities.
It is important to note here that Islam is not a mere ritual. Therefore, if one performs much on rituals but fails to fulfill his responsibility to his family, means he has failed to understand the true essence of Islam.
Let’s appreciate both aspects of Islam i.e the form and the essence of Islamic teachings, and not to only focus on one of them while ignoring the other.