For thou didst [it] secretly
Committed adultery with Bathsheba privately, and endeavoured to conceal it, by getting her husband killed in battle, and then marrying her as soon as he could to hide the shame of it:
but one will do this thing before all Israel, and before the sun;
as the above fact was; that is, he would suffer it to he done, and so order it in his providence, that everything should concur to the doing of it; as David's leaving his wives behind him, Ahithophel's wicked counsel he was suffered to give, and the lustful inclination Absalom was left unto, and not any of the people of Israel having religion, spirit, and courage enough to remonstrate against it.