I have a question regarding spirituality. sometime I felt so closer to Allah but some time that mood and that strength goes like I’m totally hopeless and sinner person. Sometimes I have prayed obligatory pray in a deep feeling with God but sometimes thought came in my mind like its my routine or just prayed without any interest or feeling. Please gives me some solution.

I recommend watching this video:

https://youtu.be/kPZNe_EG9nE

Always remember how generous Allah is. Be excited to pray to Him. He has everything you ever need in your existence (power, wealth, beauty, safety, security, etc…).