#But Yahweh was with Joseph

Here this refers to how Yahweh took care of Joseph and was kind to him. AT: "But Yahweh was kind to Joseph" (UDB) or "But Yahweh took care of Joseph" (See: [[:en:ta:vol1:translate:figs_idiom]])

#He gave him favor in the sight of the prison warden

This means Yahweh caused the prison warden to approve of Joseph and to treat him well. AT: "Yahweh caused the prison warden to be Joseph" (See: [[:en:ta:vol1:translate:figs_idiom]])

#the prison warden

"the prison manager" or "the man in charge of the prison"

#gave into Joseph's hand

"put Joseph in charge of" (See: [[:en:ta:vol1:translate:figs_metaphor]])

#Whatever they did there, Joseph was in charge of it

"Joseph was in charge of everything they did there"

#because Yahweh was with him

Here this refers to how Yahweh help Joseph and guided him. AT: "because Yahweh guided Joseph" (See: [[:en:ta:vol1:translate:figs_idiom]])

#Whatever he did, Yahweh prospered

"Yahweh caused everything that Joseph did to prosper"