David veers off course and loses sight of God, with catastrophic consequences.