1 Kings (Author Compiled by Isaiah and Jeremiah from records of Nathan, Gad, Iddo, Ahijah, Jehu and others.)
3:11And God said unto him, Because thou hast asked this thing, and hast not asked for thyself long life; neither hast asked riches for thyself, nor hast asked the life of thine enemies; but hast asked for thyself understanding to discern judgment;
Original from The Bible Foundation - bf.org. They claim public domain status for their original text.