This can be stated in active form. AT: "for you to gather the flocks" (See: [[rc://en/ta/man/translate/figs-activepassive]])
# to be gathered together
This means to gather them together inside a fence for them to stay for the night. The full meaning of this can be made explicit. (See: [[rc://en/ta/man/translate/figs-explicit]])