Here are 8 Bible verses about feeling lonely from the Old and New Testaments of the Holy Bible (King James Version), sorted from most to least relevant.
Deuteronomy 31:6 KJV
Be strong and of a good courage, fear not, nor be afraid of them: for the LORD thy God, he it is that doth go with thee; he will not fail thee, nor forsake thee.
John 15:7 KJV
If ye abide in me, and my words abide in you, ye shall ask what ye will, and it shall be done unto you.
2 Timothy 4:16-18 KJV
At my first answer no man stood with me, but all men forsook me: I pray God that it may not be laid to their charge. Notwithstanding the Lord stood with me, and strengthened me; that by me the preaching might be fully known, and that all the Gentiles might hear: and I was delivered out of the mouth of the lion. And the Lord shall deliver me from every evil work, and will preserve me unto his heavenly kingdom: to whom be glory for ever and ever. Amen.
John 3:16 KJV
For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life.
Proverbs 14:20-21 KJV
The poor is hated even of his own neighbour: but the rich hath many friends. He that despiseth his neighbour sinneth: but he that hath mercy on the poor, happy is he.
Psalms 68:5-6 KJV
A father of the fatherless, and a judge of the widows, is God in his holy habitation. God setteth the solitary in families: he bringeth out those which are bound with chains: but the rebellious dwell in a dry land.
Psalms 23:1-6 KJV
The LORD is my shepherd; I shall not want. He maketh me to lie down in green pastures: he leadeth me beside the still waters. He restoreth my soul: he leadeth me in the paths of righteousness for his name’s sake. Yea, though I walk through the valley of the shadow of death, I will fear no evil: for thou art with me; thy rod and thy staff they comfort me. Thou preparest a table before me in the presence of mine enemies: thou anointest my head with oil; my cup runneth over. Surely goodness and mercy shall follow me all the days of my life: and I will dwell in the house of the LORD for ever.
Psalms 130:7 KJV
Let Israel hope in the LORD: for with the LORD there is mercy, and with him is plenteous redemption.