Upon hearing the prophesy that from him will emanate the monarchy, David offers a prayer of gratitude to Hashem