Kings III 3:14

14 And if thou wilt walk in my way, to keep my commandments and my ordinances, as David thy father walked, then will I multiply thy days.

Kings III 3:14 In-Context

12 behold, I have done according to thy word: behold, I have given thee an understanding and wise heart: there has not been like thee before thee, and after thee there shall not arise one like thee.
13 And I have given thee what thou hast not asked, wealth and glory, so that there has not been any one like thee among kings.
14 And if thou wilt walk in my way, to keep my commandments and my ordinances, as David thy father walked, then will I multiply thy days.
15 And Solomon awoke, and, behold, a dream: and he arose and came to Jerusalem, and stood before the altar that was in front of the ark of the covenant of the Lord in Sion: and he offered whole-burnt-offerings, and sacrificed peace-offerings, and made a great banquet for himself and all his servants.
16 Then there appeared two harlots before the king, and they stood before him.

The Brenton translation of the Septuagint is in the public domain.