While it doesn't say he repented specifically his actions imply he repented.
In Romans 8- Paul describes what a lost man looks like
Romans 8:7 Because the carnal mind is enmity against God; for it is not subject to the law of God, nor indeed can be. 8 So then, those who are in the flesh cannot please God.
A lost man can't even subject themselves to God's law.
Ecclesiastics was written when Soloman was older
Soloman's last words in Ecclesiastics
Ecc 12: 13 Let us hear the conclusion of the whole matter:
Fear God and keep His commandments,
For this is man’s all.
14 For God will bring every work into judgment,
Including every secret thing,
Whether good or evil.
He talks about women being his snare
Ecc 7: 27And 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. "28Here is what I have found,” says the Preacher, “Adding one thing to the other to find out the reason,
I believe he repented and will be in heaven, hopefully we will find out soon enough.
In Romans 8- Paul describes what a lost man looks like
Romans 8:7 Because the carnal mind is enmity against God; for it is not subject to the law of God, nor indeed can be. 8 So then, those who are in the flesh cannot please God.
A lost man can't even subject themselves to God's law.
Ecclesiastics was written when Soloman was older
Soloman's last words in Ecclesiastics
Ecc 12: 13 Let us hear the conclusion of the whole matter:
Fear God and keep His commandments,
For this is man’s all.
14 For God will bring every work into judgment,
Including every secret thing,
Whether good or evil.
He talks about women being his snare
Ecc 7: 27And 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. "28Here is what I have found,” says the Preacher, “Adding one thing to the other to find out the reason,
I believe he repented and will be in heaven, hopefully we will find out soon enough.
If Jesus Himself didn't refer to Solomon, I would use the life of Solomon to teach anything other than Righteousness and Holiness. Even the majority of his Proverbs are examples of mere human wisdom, which obviously availed him absolutely nothing. He was unhappy and incredibly depressed. This is not wisdom. His worldly wisdom ran him into the ground and into the arms of Abominations who burned little children alive. He followed his phallus and not his God. Solomon was a disgusting person for what he did and represents. Reading of Solomon's sexual exploits and conquests are repulsive and disgusting. I don't enjoy reading any of his Proverbs, because I know that his lousy wisdom leads him to the involvement of murdering little children. I have built a small sweat just writing about this character. Though Judas handed over Christ to be murdered, at least he didn't slaughter little children alive.
We're all different and see different things in Scripture and my feelings regarding Solomon may be shallow and incorrect. In the end, I know that God has a Plan, and that Solomon was and is a part of it. So, I trust God in all that He does within His Eternal and unstoppable Plan.