أَخْبَرَنَا مُحَمَّدُ بْنُ عَلِيِّ بْنِ الْحَسَنِ بْنِ شَقِيقٍ، قَالَ أَنْبَأَنَا أَبِي قَالَ، أَنْبَأَنَا الْحُسَيْنُ بْنُ وَاقِدٍ، عَنْ عَمْرِو بْنِ دِينَارٍ، عَنْ عِكْرِمَةَ، عَنِ ابْنِ عَبَّاسٍ، أَنَّ عَبْدَ الرَّحْمَنِ بْنَ عَوْفٍ، وَأَصْحَابًا، لَهُ أَتَوُا النَّبِيَّ صلى الله عليه وسلم بِمَكَّةَ فَقَالُوا يَا رَسُولَ اللَّهِ إِنَّا كُنَّا فِي عِزٍّ وَنَحْنُ مُشْرِكُونَ فَلَمَّا آمَنَّا صِرْنَا أَذِلَّةً ‏.‏ فَقَالَ ‏"‏ إِنِّي أُمِرْتُ بِالْعَفْوِ فَلاَ تُقَاتِلُوا ‏"‏ ‏.‏ فَلَمَّا حَوَّلَنَا اللَّهُ إِلَى الْمَدِينَةِ أَمَرَنَا بِالْقِتَالِ فَكَفُّوا فَأَنْزَلَ اللَّهُ عَزَّ وَجَلَّ ‏{‏ أَلَمْ تَرَ إِلَى الَّذِينَ قِيلَ لَهُمْ كُفُّوا أَيْدِيَكُمْ وَأَقِيمُوا الصَّلاَةَ ‏}‏ ‏.‏

Narrated It was narrated from Ibn Abbas: 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” Translation Not Available

Book Ref: Sunan An Nisai Book 25 Hadith 3086
Web Ref:  Sunan An Nisai Vol 1 Book 25 Hadith 3088