God is a promise keeper.
“And keep the charge of the Lord your God: to walk in His ways, to keep His statutes, His commandments, His judgments, and His testimonies, as it is written in the Law of Moses, that you may prosper in all that you do and wherever you turn; that the Lord may fulfill His word which He spoke concerning me, saying, ‘If your sons take heed to their way, to walk before Me in truth with all their heart and with all their soul,’ He said, ‘you shall not lack a man on the throne of Israel.’ 1 Kings 2:3-4
However, notice there are conditions…. to walk in His ways, to keep His statutes, His commandments, His judgments, and His testimonies. If we do so, we will prosper. God will fulfill His word.