مَا وَدَّعَكَ رَبُّكَ وَمَا قَلَىٰ ﴿٣﴾
Thy Lord hath not forsaken thee nor doth He hate thee,
That feeling is common, and it is not what Allah says about Himself. In a hard time for the Prophet ﷺ, Allah revealed to him that his Lord had neither forsaken him nor hated him. Allah says He is near and answers when you call, and many Muslims take your own wish to return to Him as a hopeful sign that He has not left you.
The Quran says Allah did not forsake or hate the Prophet. The occasion is recorded in Sahih al-Bukhari: he was unwell and did not get up for two or three nights, and a woman said she hoped his shaytan had left him. Then Allah revealed the chapter called ad-Duha (The Morning Hours). Muslims read it as comfort for anyone who feels left alone in a hard time. Allah also says that when His servants ask about Him, He is near, and that He is closer to a person than the jugular vein.
The Prophet ﷺ related that Allah says, 'I am as My servant thinks of Me,' and that if a servant comes to Him walking, He comes to him running. Hard times and sins are not proof of being hated. The Prophet ﷺ taught that no tiredness, illness, worry, sorrow or harm strikes a Muslim, even a thorn, except that Allah removes some of his sins by it. And the Quran says that Allah loves those who turn back to Him in repentance.
The guilt, the heaviness and the wish to be better are not proof that Allah has given up on you, and they can be signs of a heart that is still alive. If you have been away from prayer or from Allah for a long time, you can begin with one sincere prayer and a few honest words in your own language. If the feeling is constant and crushing, and comes with deep sadness or hopelessness, it can also be a sign of a mental health condition, and speaking to a doctor or counsellor is encouraged alongside turning to Allah.
مَا وَدَّعَكَ رَبُّكَ وَمَا قَلَىٰ ﴿٣﴾
Thy Lord hath not forsaken thee nor doth He hate thee,
وَإِذَا سَأَلَكَ عِبَادِى عَنِّى فَإِنِّى قَرِيبٌ ۖ أُجِيبُ دَعْوَةَ ٱلدَّاعِ إِذَا دَعَانِ ۖ فَلْيَسْتَجِيبُوا۟ لِى وَلْيُؤْمِنُوا۟ بِى لَعَلَّهُمْ يَرْشُدُونَ ﴿١٨٦﴾
And when My servants question thee concerning Me, then surely I am nigh. I answer the prayer of the suppliant when he crieth unto Me. So let them hear My call and let them trust in Me, in order that they may be led aright.
وَلَقَدْ خَلَقْنَا ٱلْإِنسَٰنَ وَنَعْلَمُ مَا تُوَسْوِسُ بِهِۦ نَفْسُهُۥ ۖ وَنَحْنُ أَقْرَبُ إِلَيْهِ مِنْ حَبْلِ ٱلْوَرِيدِ ﴿١٦﴾
We verily created man and We know what his soul whispereth to him, and We are nearer to him than his jugular vein.
وَيَسْـَٔلُونَكَ عَنِ ٱلْمَحِيضِ ۖ قُلْ هُوَ أَذًۭى فَٱعْتَزِلُوا۟ ٱلنِّسَآءَ فِى ٱلْمَحِيضِ ۖ وَلَا تَقْرَبُوهُنَّ حَتَّىٰ يَطْهُرْنَ ۖ فَإِذَا تَطَهَّرْنَ فَأْتُوهُنَّ مِنْ حَيْثُ أَمَرَكُمُ ٱللَّهُ ۚ إِنَّ ٱللَّهَ يُحِبُّ ٱلتَّوَّٰبِينَ وَيُحِبُّ ٱلْمُتَطَهِّرِينَ ﴿٢٢٢﴾
They question thee (O Muhammad) concerning menstruation. Say: It is an illness, so let women alone at such times and go not in unto them till they are cleansed. And when they have purified themselves, then go in unto them as Allah hath enjoined upon you. Truly Allah loveth those who turn unto Him, and loveth those who have a care for cleanness.