This can be stated in active form. Alternate translation: "the things that we read about in scripture had to take place" (See: [[rc://en/ta/man/translate/figs-activepassive]])
The word "mouth" refers to the words that David wrote. Alternate translation: "through the words of David" (See: [[rc://en/ta/man/translate/figs-metonymy]])