Amr ibn Shuaib reported: The Messenger of Allah, peace and blessings be upon him, said, “Whoever is party to a just pact during the time of ignorance, then Islam does not increase it but in strength.”
Source: al-Adab al-Mufrad 570
Grade: Sahih (authentic) according to Al-Albani
عَنْ عَمْرِو بْنِ شُعَيْبٍ أَن رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ مَنْ كَانَ لَهُ حِلْفٌ فِي الْجَاهِلِيَّةِ لَمْ يَزِدْهُ الإِسْلاَمُ إِلاَّ شِدَّةً
570 الأدب المفرد للبخاري
443 المحدث الألباني خلاصة حكم المحدث صحيح في صحيح الأدب المفرد