(1 Chronicles 28) Two-sided

As for you, my son Solomon, know the God of your father, and serve Him with a loyal heart and with a willing mind; for the Lord searches all hearts and understands all the intent of the thoughts. If you seek Him, He will be found by you; but if you forsake Him, He will cast you off forever.

The promise of God to Solomon was not unconditional. If you seek Him. It was conditional.  Part of a two-sided covenant.