David consults the prophet Nathan about building a temple for the Lord, and is encouraged by him to do it, Sa2 7:1-3. That night Nathan receives a revelation from God, stating that Solomon, not David, should build the temple, Sa2 7:4-16. Nathan delivers the Divine message, and David magnifies God for his mercies, and makes prayer and supplication, Sa2 7:17-29.