If we confess our sins, he is faithful and just and will forgive us our sins and purify us from all unrighteousness. (1 John 1:9, NIV)
What should you do when you find you have forgotten God for a while? Don’t beat yourself up. Simply turn to Him again, admit your failure, and continue joyfully walking with Him. Your sadness is a sign of your love and desire for Him.
What should you do when you realize you’ve sinned? Don’t be discouraged. Admit it. “That is just like me! I cannot do anything right without God.” Confess your sin and confidently petition His grace, focusing not on your sin, but on His merits.
Then return to your normal work, and never let your mind go back. Put yourself completely in God’s hands for life and death, for time and eternity.