All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger.
It is not appropriate for a husband to spend most of his time outside his home without a sound reason. Even if it is not forbidden in itself, yet it is contradictory to having good marital relationship with his wife. His wife and his children are most in need of his presence amongst them in order to take care of them and properly nurture them at home. If the father is absent from home, this may have negative effects on his family and particularly on his children; and most particularly on his male children. For more benefit, please refer to Fataawa 88304 and 86618.
Hence, we advise you to try to find out the reasons why your husband does not like staying at home and why he spends his time with his friends. If there are any apparent reasons, then you should try to eliminate them. You should take care of him and beautify yourself to him and do other things that may make him like his home and spend his time at home.
As regards his negligence about the prayer, and not observing it at its due time, then this is a very serious matter and a grave major sin as clarified in Fataawa 88010 and 88932.
If a person cuts his relationship between him and his Lord, then he is more likely to cut his relationship with his family and not spend enough time with them.
In any case, you should continue advising him about both matters and you should do so in a gentle and soft manner hoping that Allaah will enable him to repent and regain his senses.
If he continues to abandon the prayer, you have the right to ask for divorce, and if you wish to be patient and try to rectify him, then you may do so as well.
Allaah Knows best.