Surah At-Tawbah 9:23
يَـٰٓأَيُّهَا ٱلَّذِينَ ءَامَنُوا۟ لَا تَتَّخِذُوٓا۟ ءَابَآءَكُمْ وَإِخْوَٰنَكُمْ أَوْلِيَآءَ إِنِ ٱسْتَحَبُّوا۟ ٱلْكُفْرَ عَلَى ٱلْإِيمَـٰنِ ۚ وَمَن يَتَوَلَّهُم مِّنكُمْ فَأُو۟لَـٰٓئِكَ هُمُ ٱلظَّـٰلِمُونَ
O you who have believed, do not take your fathers or your brothers as allies if they have preferred disbelief over belief. And whoever does so among you - then it is those who are the wrongdoers.
Translation: Saheeh International
Tafsir
The following was revealed regarding those who refrained from emigrating because of their families and trade O you who believe do not take your fathers and brothers for your friends if they prefer if they have chosen disbelief over belief; whoever of you takes them for friends such are the evildoers.
Excerpt from Tafsir al-Jalalayn, commentary on 9:23, via Quran.com. The reader has the full commentary and 9 more tafsirs.