Both David and Paul repented showing so in scripture, show me one verse with solomons name repenting... No such thing..
He did write the book of Ecclesiastes.
According to rabbinic tradition, Ecclesiastes was written by Solomon in his old age.
But aside of written Jewish tradition - the Scripture alone is solid in proving Solomon's authorship:
Ecclesiastes 1:1 The words of the Preacher, the son of David, king in Jerusalem.
--- establishing the author of the book is David's son
Ecclesiastes 1:2 Vanity of vanities, saith the Preacher, vanity of vanities; all
is vanity.
Ecclesiastes 1:12 I the Preacher was king over Israel in Jerusalem.
--- definitely establishing Solomon's identity
Ecclesiastes 1:16 I communed with mine own heart, saying, Lo, I am come to great estate, and have gotten more wisdom than all
they that have been before me in Jerusalem: yea, my heart had great experience of wisdom and knowledge.
--- corresponding the wisdom that Solomon was given according to the rest of Biblical account... the man writing this can be only one person: Solomon.
Ecclesiastes 2:7 I got
me servants and maidens, and had servants born in my house; also I had great possessions of great and small cattle above all that were in Jerusalem before me:
Ecclesiastes 2:9 So I was great, and increased more than all that were before me in Jerusalem: also my wisdom remained with me.
--- as above
Ecclesiastes 4:7 Then I returned, and I saw vanity under the sun.
Ecclesiastes 7:20 For
there is not a just man upon earth, that doeth good, and sinneth not.
Ecclesiastes 7:23 All this have I proved by wisdom: I said, I will be wise; but it
was far from me.
Ecclesiastes 7:26 And I find more bitter than death the woman, whose heart
is snares and nets,
and her hands
as bands: whoso pleaseth God shall escape from her; but the sinner shall be taken by her.
--- he really did repent for everything, brother.
Ecclesiastes 12:9 And moreover, because the preacher was wise, he still taught the people knowledge; yea, he gave good heed, and sought out,
and set in order many proverbs.
*
Ecclesiastes 12:13 Let us hear the conclusion of the whole matter: Fear God, and keep his commandments: for this
is the whole
duty of man.
*He had also written the book of Proverbs:
Proverbs 1:1 The proverbs of Solomon the son of David, king of Israel;
Both Proverbs and Ecclesiastes are known as "wisdom literature".
Thank you for causing me to compile these verses, hope you enjoy them, I have actually ended up reading the whole book of Ecclesiastes - I've been at that spot lately so it was a great comfort.