I checked my website on Google Console and I found something strange. I checked the links of my website in the console and in the box that shows Top linking sites. There are two link that when I open them on browser, there is nothing in the websites. The sites are completely unknown for me. Does any one know what are these and why my websites links to them?
To expand on Stephen's answer not only will links to your site not hurt your seo, it will actually help. You can use Google webmaster tools to submit your site to Google for indexing but what really helps your seo in the end are organic links. It used to be that indexers relied on meta tags in your code but not anymore. The number one thing that will increase your Google ranking is getting others to link your site. If you look in your logs you will sometimes see referrer spam. See https://en.m.wikipedia.org/wiki/Referer_spoofing. Sometimes spammers and hackers will manipulate http headers to disguise what lead them to your website but for the most part you want to be linked.
Those are sites that link to your site, not sites to which you link. If you click on the circled question mark, you can see Google's explanation:
Links from outside your property to your property. Values are trimmed to root domain and grouped. If the current property is listed here, it is because the subdomain of the host page has been omitted. For example, if the link is from
www.example.com, the value shown here would be
You can see exactly which pages link to your site and which pages they link to.