However, Hashem was not willing to destroy the Bais Dovid, for the sake of HaBrit that He had cut with Dovid, and since He promised to give a ner (lamp) to him and to his banim kol hayamim.