In the second year all Israel went up (to celebrate) the festivals. David said to them: Go forth and see if there be among you people who lead immoral lives, because owing to the sin of immorality the heavens are closed, as it is said, "And thou hast polluted the land with thy whoredoms" (Jer. 3:2). What is written after this in this context? "Therefore the showers have been withholden, and there hath been no latter rain" (Jer. 3:3). They investigated, but they did not find (any immoral people).
In the third || year all Israel went up (to celebrate) the festivals. David said to them: Go forth and see if there be among you people who shed blood, because on account of the sin of those who murder the rain is withheld, as it is said, "So ye shall not pollute the land wherein ye are; for blood, it polluteth the land" (Num. 35:33). They went forth and investigated, but they did not find (any murderer). David said to them: Henceforth the matter only depends upon me. David arose and prayed before the Holy One, blessed be He. And He answered him: It is for Saul; was not Saul one who was anointed with the oil of consecration? and was it not Saul in whose days there was no idolatry in Israel? and was it not Saul who secured his portion with Samuel the prophet? Yet ye are in the land (of Israel) and he is (buried) outside the land (of Israel).