Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:8:73

And those who disbelieved are allies of one another. If you do not do so, there will be fitnah on earth and great corruption.  

And those who disbelieve are allies of one another, in terms of ˹mutual˺ support and inheritance, and so there is no inheriting between you and them. Unless you do this, ˹unless˺ you ally yourselves with the believers and sever relations with the disbelievers, there will be sedition in the land and great corruption, with disbelief gaining power and Islam becoming weak.
القرآن:٨:٧٣

وَالَّذِينَ كَفَرُوا بَعْضُهُمْ أَوْلِيَاءُ بَعْضٍ ۚ إِلَّا تَفْعَلُوهُ تَكُنْ فِتْنَةٌ فِي الْأَرْضِ وَفَسَادٌ كَبِيرٌ  

{والذين كفروا بعضهم أولياء بعض} في النصرة والإرث فلا إرث بينكم وبينهم {إلا تفعلوه} أي تولي المسلمين وقمع الكفار {تكن فتنة في الأرض وفساد كبير} بقوة الكفر وضعف الإسلام.

See similar narrations below:

Collected by Ḥākim
hakim:2944Abū Jaʿfar Muḥammad b. Ṣāliḥ b. Hāniʾ > Abū Saʿd Yaḥyá b. Manṣūr al-Harawī > ʿAlī b. Ḥusayn > ʿAmr b. ʿUthmān > Usāmah b. Zayd

[Machine] The Prophet ﷺ said, "The people of two different religions do not inherit from each other, and a Muslim does not inherit from a disbeliever, nor does a disbeliever inherit from a Muslim." Then he recited the verse, "And those who disbelieve are allies of one another. If you do not do so, there will be fitnah on earth and great corruption" (Quran 8: 73) with a ya.  

الحاكم:٢٩٤٤حَدَّثَنَا أَبُو جَعْفَرٍ مُحَمَّدُ بْنُ صَالِحِ بْنِ هَانِئٍ ثنا أَبُو سَعْدٍ يَحْيَى بْنُ مَنْصُورٍ الْهَرَوِيُّ عَنْ عَلِيِّ بْنِ حُسَيْنٍ عَنْ عَمْرِو بْنِ عُثْمَانَ عَنْ أُسَامَةَ بْنِ زَيْدٍ

عَنِ النَّبِيِّ ﷺ قَالَ «لَا يَتَوَارَثُ أَهْلُ مِلَّتَيْنِ وَلَا يَرِثُ مُسْلِمٌ كَافِرًا وَلَا كَافِرٌ مُسْلِمًا» ثُمَّ قَرَأَ {وَالَّذِينَ كَفَرُوا بَعْضُهُمْ أَوْلِيَاءُ بَعْضٍ إِلَّا تَفْعَلُوهُ تَكُنْ فِتْنَةٌ فِي الْأَرْضِ وَفَسَادٌ كَبِيرٌ} [الأنفال 73] بِالْيَاءِ  

«هَذَا حَدِيثٌ صَحِيحُ الْإِسْنَادِ وَلَمْ يُخَرِّجَاهُ»