that Abdur-Rahman bin Awf and some of his companions came to the Prophet in Makkah and said: “O Messenger of Allah! We were respected when we were idolaters and when we believed, we were humiliated.” He said: “I have been commanded to pardon, so do not fight.” Then, when Allah caused us to move to Al-Madinah, He commanded us to fight, but they refrained. Then Allah, the Mighty and Sublime, revealed: Have you not seen those who were told to hold back their hands (from fighting) and perform As-Salah” (Using translation from Nasāʾī 3086)
أَنَّ عَبْدَ الرَّحْمَنِ بْنَ عَوْفٍ وَأَصْحَابًا لَهُ أَتَوُا النَّبِيَّ ﷺ بِمَكَّةَ فَقَالُوا يَا نَبِيَّ اللَّهِ كُنَّا فِي عِزٍّ وَنَحْنُ مُشْرِكُونَ فَلَمَّا آمَنَّا صِرْنَا أَذِلَّةً قَالَ «إِنِّي أُمِرْتُ بِالْعَفْوِ فَلَا تُقَاتِلُوا فَكُفُّوا» فَأَنْزَلَ اللَّهُ تَعَالَى {أَلَمْ تَرَ إِلَى الَّذِينَ قِيلَ لَهُمْ كُفُّوا أَيْدِيَكُمْ وَأَقِيمُوا الصَّلَاةَ وَآتُوا الزَّكَاةَ فَلَمَّا كُتِبَ عَلَيْهِمُ الْقِتَالُ إِذَا فَرِيقٌ مِنْهُمْ يَخْشَوْنَ النَّاسَ} [النساء 77]