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]