The Lord is always in the restoration business because He knows we are frail failing sinners that need grace. In the gospel of Luke, Jesus knowing Peter would deny Him three times, prayed for Peter that his faith would not fail, Peter failed, but not faith. Luke 22:32
but I have prayed for you that your faith may not fail. And when you have turned again, strengthen your brothers.”
Peter failed many times, over and over again. But he experienced a rebounding grace. Look at how Peter writes in his epistles about “like precious faith” but still notice Peter’s impatience with The Lord asking three times, do you love me.
So when we fail, be encouraged, God will restore us. Psalms 23:3 He restores my soul. He leads me in paths of righteousness for his name’s sake.