Chazal (Psikta Shuvah Yisrael, ch.9) teach: "A mashal to the son of a king who was distant from the king for one hundred days. His friends said, 'Return to your father.' He said that he can't. The father sent a message. 'Come as far as you can, and I will meet you midway.' The Psikta says that Hakadosh Baruch Hu says אליכם ואשובה אלי שובה, 'Return to Me, and then I will return to you.' Hashem tells us to return as much as possible, and then Hashem will help us complete the teshuvah.
Rabbeinu Yonah (beginning of Shaarei Teshuvah) writes, "The Torah tells us that Hashem will help those who return to Him, who, according to their nature, aren't able to complete their teshuvah. Hakadosh Baruch Hu will grant them a new, pure spirit from Above, so they can attain His love." If man will do what he can, Hashem will help him succeed in his teshuvah.