Bible: Genesis 40:4

40:4 The captain of the guard appointed Joseph to be their attendant, and he served them. 1 

They spent some time in custody. 2 

NET Bible Study Environment