The larger section (1 Chronicles 13:1–17:27) ends with Nathan's prophecy about David and David's prayer of thanks.