I was reading through Genesis 40 about Joseph when he had interpreted the dreams of the two prisoners, and realized it actually references great detail about the two thieves crucified with Jesus Christ. Below are scriptures and some thoughts I gathered to help you see the correlation:
Matthew 27:38
38 Then were there two thieves crucified with him, one on the right hand, and another on the left.
Matthew 25:33
“And he shall set the sheep on his right hand, but the goats on the left.”
_________________________________________________
Luke 23:32-43
32 And there were also two other, malefactors, led with him to be put to death.
33 And when they were come to the place, which is called Calvary, there they crucified him, and the malefactors, one on the right hand, and the other on the left.
34 Then said Jesus, Father, forgive them; for they know not what they do. And they parted his raiment, and cast lots.
35 And the people stood beholding. And the rulers also with them derided him, saying, He saved others; let him save himself, if he be Christ, the chosen of God.
36 And the soldiers also mocked him, coming to him, and offering him vinegar,
37 And saying, If thou be the king of the Jews, save thyself.
38 And a superscription also was written over him in letters of Greek, and Latin, and Hebrew, This Is The King Of The Jews.
39 And one of the malefactors which were hanged railed on him, saying, If thou be Christ, save thyself and us.
40 But the other answering rebuked him, saying, Dost not thou fear God, seeing thou art in the same condemnation?
41 And we indeed justly; for we receive the due reward of our deeds: but this man hath done nothing amiss.
42 And he said unto Jesus, Lord, remember me when thou comest into thy kingdom.
43 And Jesus said unto him, Verily I say unto thee, Today shalt thou be with me in paradise.
_________________________________________________
(The penitent thief, who is thought to have hung on Jesus’ right side.)
Genesis 40:9-13
9 And the chief butler told his dream to Joseph, and said to him, In my dream, behold, a vine was before me;
10 And in the vine were three branches: and it was as though it budded, and her blossoms shot forth; and the clusters thereof brought forth ripe grapes:
11 And Pharaoh's cup was in my hand: and I took the grapes, and pressed them into Pharaoh's cup, and I gave the cup into Pharaoh's hand.
12 And Joseph said unto him, This is the interpretation of it: The three branches are three days:
13 Yet within three days shall Pharaoh lift up thine head, and restore thee unto thy place: and thou shalt deliver Pharaoh's cup into his hand, after the former manner when thou wast his butler.
(On the third day the chief butler is to be restored)
_________________________________________________
(The impenitent thief, who is thought to have hung on Jesus’ left side.)
Luke 23:29
39 And one of the malefactors which were hanged railed on him, saying, If thou be Christ, save thyself and us.
Genesis 40:16-19
16 When the chief baker saw that the interpretation was good, he said unto Joseph, I also was in my dream, and, behold, I had three white baskets on my head:
17 And in the uppermost basket there was of all manner of bakemeats for Pharaoh; and the birds did eat them out of the basket upon my head.
18 And Joseph answered and said, This is the interpretation thereof: The three baskets are three days:
19 Yet within three days shall Pharaoh lift up thy head from off thee, and shall hang thee on a tree; and the birds shall eat thy flesh from off thee.
(shall hang thee on a tree) = crucified thief
_________________________________________________
Genesis 40:20-23
20 And it came to pass the third day, which was Pharaoh's birthday, that he made a feast unto all his servants: and he lifted up the head of the chief butler and of the chief baker among his servants.
21 And he restored the chief butler unto his butlership again; and he gave the cup into Pharaoh's hand:
22 But he hanged the chief baker: as Joseph had interpreted to them.
23 Yet did not the chief butler remember Joseph, but forgat him.
(Yet did not the chief butler remember Joseph, but forgat him) consider: Luke 23:42-43
Luke 23:42-43
42 And he said unto Jesus, Lord, remember me when thou comest into thy kingdom.
43 And Jesus said unto him, Verily I say unto thee, Today shalt thou be with me in paradise.
(Today shalt thou be with me in paradise)
(It was Pharaoh's birthday, and he made a feast for all his servants) consider: the day of the Lord & the wedding supper.
(The third day. One day to God is as a 1000 years)