Abu Hurairah said: The holy Prophet ﷺ said to the Jew: I adjure you by Allah Who sent down the Torah to Moses! do you not find in the Torah (a rule about a man) who commits adultery. He then narrated the rest of the tradition relating to the stoning.
Related hadith on this topic
Explanation & Benefits
Shaykh Umar Farooq Saeedi
488. Commentary:
Although this narration is weak in its chain of transmission, the actual incident is present in the two Sahihs, and this hadith has also come in detail in the Book of Hudud. [سنن أبى داود، حديث : 4450]
From this it is understood that, due to an important need, Jews may enter the mosque.
Source: Sunan Abu Dawood – Commentary by Shaykh Umar Farooq Saeedi, Page: 488