Can Muslims Have Non-Muslim Friends?
The verse is referring to the non Muslims that were at the time of the prophet(SAW). The prophet(SAW) invited them to Islam and after Itmam e Hujjat, they were going to be punished. At this time it is said that Muslims should not take friends but from among themselves.