Joseph answered and said, This is its interpretation. The three baskets are the three enslavements with which the house of Israel are to be enslaved. But thou, the chief of the bakers, wilt receive an evil award, by the dream which thou hast dreamed. And Joseph explained it, as it was proper in his eyes and said to him: This is its interpretation to thyself. The three baskets are three days until thy death.
The Three Baskets as the Three Enslavements of Israel
Targum Pseudo-Jonathan on Genesis 40:18