Question

She is asking about the ruling on her husband who went to practitioners of magic and stopped praying

Whilst I was reading Saheeh al-Jaami‘ as-Sagheer, I came across a hadeeth (1279) that says: “O Allah, I ask You and I turn to You by virtue of Your Prophet Muhammad, the Prophet of mercy; O Muhammad, I turn by virtue of you to my Lord concerning this need of mine, that it might be met for me. O Allah, or accept his intercession for me.” I was confused about this hadeeth. Is there any evidence in it for those who seek to draw close to Allah (tawassul) by virtue of the dead, as is done by worshippers of graves and their ilk? How can we interpret this hadeeth?.
Answer
Answer
My mother emotionally blackmailed me into marrying my first cousin 9 years ago when I was just 15 years old. i kept quiet out of fear and since then have been blessd with 3 beautifil boys alhamdulillaah. Since the last 2 years we have been problems and he went to see someone who plays with magic. As far as my limited knowledge is concerned that takes one out of the fold of islam. Also for a while he was neglecting his prayers and would only d pray sometimes anod do his jumah. But he has rpented since and prays 5 times a day alhamdulillaah. HE also said he didnt know what he was doin with regards to the magic as he was not in the right state of mindbut i dont know what to think as he said he diddnt know it was wrong amd kufr as he thought it would get us out of a difficult situation. He possesses no knowledge with regards to deen so my questions are: 
1. Did the magic take him out of islam??, is it the same ruling for one who knows that its wrong and one who doesnt ?. 
2. Also did the fact he neglected some of his prayers take him out of islambecause said he repented and started praying agai.n. 
3.Also he left the house 3 months ago and before he left he said to my mum she is finished from me and me from her' does tha count as a talaq? As he wa angry and left the house. He is currently abroad and hasnt really provided for the kids or me. H left all our debts to me but he said he will contribute once i let him back in but i dont know what to do. i love my kids and would do anything for them. 
I hope you can assist me in this matter soon as this has affected me and especiallymy 3 children who are all under the age of 8. It has left them distrssed and they want him back in the house. He has gone abroad for now and will be back iwthin a few weeks and i need this matter resolved soon inshaAllaah.