Genesis 39:21 NKJV
But the Lord was with Joseph and showed him mercy, and He gave him favor in the sight of the keeper of the prison.
Although Joseph had a divine destiny to fulfill, the favor God gave him when he went to prison because he was lied on, was called mercy. Let us keep in mind that even when we are following God's plan for our lives we need to look for His mercy and be grateful for it. God does not have to do what He does for us. He wants to. Psalm 107:1 says, "Oh, give thanks to the Lord, for He is good! For His mercy endures forever." Mercy is a key to our success in life. Realizing that will help keep us humble.