Genesis 40:4

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

They spent some time in custody.

Genesis 40:7

40:7 So he asked Pharaoh’s officials, who were with him in custody in his master’s house, “Why do you look so sad today?”

Genesis 41:10

41:10 Pharaoh was enraged with his servants, and he put me in prison in the house of the captain of the guards – me and the chief baker.

Leviticus 24:12

24:12 So they placed him in custody until they were able to make a clear legal decision for themselves based on words from the mouth of the Lord.

Psalms 119:65

ט (Tet)

119:65 You are good to your servant,

O Lord, just as you promised.

Acts 4:3

4:3 So they seized them and put them in jail until the next day (for it was already evening).

Hebrews 12:10

12:10 For they disciplined us for a little while as seemed good to them, but he does so for our benefit, that we may share his holiness.