I Kings 6:12 Concerning this house which thou art in building, if thou wilt walk in my statutes, and execute my judgments, and keep all my commandments to walk in them; then will I perform my word with thee, which I spake unto David thy father:
God gives Solomon a conditional promise of great blessing. God will bless if Solomon will do as He has commanded.
So many things in our lives are dependent on our obedience. We are saved by grace. Our works do not make us saved nor keep us saved. But our obedience does determine our quality of life. God blesses obedience. Real obedience shows our love for Him. Disobedience will bring chastisement.
God I want to do what you tell me to do. I want to honor you with my life.