The words "the promise came" are understood from the first phrase. You can translate this by adding these implied words. Alternate translation: "but the promise came through faith, which God considers as righteousness" (See: [[rc://en/ta/man/translate/figs-ellipsis]])