In a heartfelt prayer , he said : “ Also to the foreigner , who is no part of your people Israel and who actually comes from a distant land by reason of your name ( for they shall hear of your great name and of your strong hand and of your stretched - out arm ) , and he actually comes and prays toward this house , may you yourself listen from the heavens , your established place of dwelling , and you must do according to all that for which the foreigner calls to you ; in order that all the peoples of the earth may get to know your name so as to fear you the same as your people Israel do . ” ​ — 1 Ki . When King David was near the end of his life , he instructed his son Solomon to see to it that Joab paid for his badness . ​ — 1 Ki .