David asked Yahweh to punish him and his father's family instead of the people of Israel for the great sin.