Decades prior, Jacob had to run from home to escape the consequences of his sin. In Genesis 31:3, God commands Jacob to leave exile and return home. Subsequently, even if Jacob at one point felt as if he has “screwed it all up,” the reality is that God has providentially been directing him the whole time.
Yes, Jacob had a long road back home but because of God's relentless grace, he ended up exactly where he was called to be.