That is, "Before this, God had told John" or, "Before Jesus came to be baptized, God had told John."
These references may be slightly different in some Bible translations.