Come near to God and he will come near you. James 4:8
How can we come near to God? James gives five ways:
Yield to his authority and will. Commit your life to him and his control. Be willing to follow him.
Resist the devil. Do not allow Satan to tempt you.
Purify your hearts. Lead a pure life. Replace your desire to sin with your desire to experience God's purity.
Grieve and mourn in sincere sorrow for your sins. Do not be afraid to express heartfelt sorry for what you have done.
Humble yourself before the Lord and he will lift you up. Humbling yourselves means recognizing that our worth comes from God alone.
When we humble ourselves and realize our need for God, he will come to us and lift us up.