In 2 Tim 4:16-17 Paul wrote At my first answer no man stood with me, but all men forsook me: I pray God that it may not be laid to their charge. Notwithstanding the Lord stood with me, and strengthened me; that by me the preaching might be fully known, and that all the Gentiles might hear
So Paul was forsaken by all and he prayed that their forsaking him would not be laid against them by God. Paul relied on the Lord standing with him, strengthening him.
Paul spent his time in prison writing letters to the churches, which we read to this day.
While no one likes to be abandoned / forsaken by others, we can either harden our hearts and become bitter or we can turn to the Lord and acknowledge that He continues to stand with us and strengthen us. And sometimes it takes abandonment by others around us to get to the point where we rely solely on God and see that He is with us continuously, strengthening us, guiding us, helping us in good times and in times of adversity.