Which preposition to use with afoul

of Occurrences 4%

The consequence of this was that we no sooner came Abreast of the reef in that locality than we got Afoul of it.

Which preposition to use with  afoul