"Any man whose wife goes astray" (Numbers 5:12). This is what Scripture said: "Can a man hide himself in secret places, and I will not see him? says the Lord" (Jeremiah 23:24). [Rabbi Benjamin son of Rabbi Levi said:] The Holy One, blessed be He, said: If a person does a deed, shall I not see it? For behold, it is written, "The eyes of the Lord, they range throughout all the earth" (Zechariah 4:10). And what is written? "And I will not see him" — meaning, I will not show him to others and publicize his deeds. What is the meaning of "Do I not fill the heavens and the earth? says the Lord" (Jeremiah 23:24)? The Holy One, blessed be He, said: I fill the upper realms and the lower realms. Therefore it is said, "Can a man hide himself in secret places, and I will not see him?"
God Sees the Hidden Sin of the Sotah Wife Who Strays
Midrash Tanchuma Buber, Nasso 8:1
איש איש כי תשטה אשתו. זש"ה אם יסתר איש במסתרים ואני לא אראנו וגו' (ירמיה כג כד), [אמר ר' בנימין ב"ר לוי] אמר הקב"ה אם יעשה אדם מעשה ואני לא אראנו, הרי כתיב עיני ה' המה (משוטטות) [משוטטים] בכל הארץ (זכריה ד י), ומה כתיב ואני לא אראנו, לא אראנו לבריות ואפרסם מעשיו, מהו הלא את השמים ואת הארץ אני מלא נאם ה' (ירמיה כג כד), אמר הקב"ה אני ממלא העליונים והתחתונים, לכך נאמר אם יסתר איש במסתרים ואני לא אראנו.