Abu Zubair narrates that he heard Sayyiduna Jabir bin Abdullah (may Allah be pleased with him) explaining the statement of Allah Almighty « إِنَّمَاالْمُشْرِكُونَنَجَسٌفَلَايَقْرَبُواالْمَسْجِدَالْحَرَامَبَعْدَعَامِهِمْهَٰذَا »[ سورۃ التوبه : 28 ] "Indeed, the polytheists are impure, so let them not approach Al-Masjid Al-Haram after this year," he said: Except if he is a slave or a person from the people under protection (Ahl al-Dhimma), (then he may enter Al-Masjid Al-Haram).
Hadith Referenceصحيح ابن خزيمه / جماع أبواب الأفعال المباحة فى المسجد غير الصلاة وذكر الله / 1329