Sunan an-Nasa'i 3980
It was narrated from An-Nu'man bin Salim that:
A man said to him: "The Messenger of Allah [SAW] came to us while we were in a tent inside the Masjid of Al-Al-Madinah, and he said to us: 'It has been revealed to me that I should fight the people until they say La ilaha illallah.'" A similar narration.
‏{‏ أَخْبَرَنَا أَحْمَدُ بْنُ سُلَيْمَانَ، ‏}‏ قَالَ عُبَيْدُ اللَّهِ حَدَّثَنَا إِسْرَائِيلُ، عَنْ سِمَاكٍ، عَنِ النُّعْمَانِ بْنِ سَالِمٍ، عَنْ رَجُلٍ، حَدَّثَهُ قَالَ دَخَلَ عَلَيْنَا رَسُولُ اللَّهِ صلى الله عليه وسلم وَنَحْنُ فِي قُبَّةٍ فِي مَسْجِدِ الْمَدِينَةِ وَقَالَ فِيهِ ‏
"‏ إِنَّهُ أُوحِيَ إِلَىَّ أَنْ أُقَاتِلَ النَّاسَ حَتَّى يَقُولُوا لاَ إِلَهَ إِلاَّ اللَّهُ ‏"‏ ‏.‏ نَحْوَهُ ‏.‏