David's greatest victory and its consequences