Allah Himself said this in a hadith qudsi. When you feel lonely remember that every time you say dhikr Allah becomes your companion. Recite His names and He is with you.