Genesis 40:4

4 They spent a long time in prison, and the captain assigned Joseph as their servant.