Two events in David’s life instruct us in how to deal with trouble.