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.
قَالَ دَخَلَ عَلَيْنَا رَسُولُ اللَّهِ ﷺ وَنَحْنُ فِي قُبَّةٍ فِي مَسْجِدِ الْمَدِينَةِ وَقَالَ فِيهِ إِنَّهُ أُوحِيَ إِلَىَّ أَنْ أُقَاتِلَ النَّاسَ حَتَّى يَقُولُوا لاَ إِلَهَ إِلاَّ اللَّهُ نَحْوَهُ