I've only heard it - with its apparent use in this case - in phrases about knowledge specific to someone or something, as in:
かみのみぞしるあめのみぞしる。
I would normally - with my low-level understanding of Japanese - use を and say for example:
それはかみのみをしること。
I've not found any info on Google. What is the function of ぞ and where else can it be used?