Genesis 40

In prison, Yosef interprets the mashkeh's dream of a vine as restoration in three days and the ofek's of baskets as hanging in three days; the mashkeh is restored but forgets Yosef after Pharaoh's birthday.

Interlinear Text

and they dreamed a dream both of them each man his dream in the night one each man according to the interpretation of his dream the cupbearer and the baker who of the king of Egypt who were bound in the house of the prison
And it came to pass on the day the third day of birthday - Pharaoh's and he made a feast for all his servants and he lifted up - the head chief of the cupbearer and the head chief of the bakers in the midst of his servants