The omniscience of Yahweh, if we consider it, not theologically, as an abstract attribute of Deity, i.e., as absolute omniscience, but historically in its concrete, though imperfect formulation as relative omniscience, is so organically connected with the particular and well-defined ideological complex which makes up the figure of Yahweh himself that it is difficult to suppose it has a different origin. In the conscience and the history of Israel,Yahweh is the wakeful, avenging, ”jealous” God, the wrathful God who judges and punishes. Now a God who punishes is a God who knows. Yahweh’s omniscience has for its principal object the doings of mankind, and his punitive sanction is often exercised by means of weather-phenomena. Universal vision and knowledge and punitive sanction are complementary aspects of the figure of Yahweh, and another complementary aspect is his abode in the sky ( cf. the Tower of Babel, Gen. xi. 1 /qq., Jacob’s ladder, Gen. xxviii. I2 sqq., also I Kings xxii. xg, etc.). It is from the sky that he sees what men are doing, and from the sky that he sends his chastisement.
Raffaele Pettazzoni, The All Knowing God, p 108