Masud, Suhayb, Ammar, Miqdad, and Bilal reported,

The Quraysh said to the Messenger of Allah ﷺ, "We are not willing to be followers of these people, so drive them away from you." Something of that entered the heart of the Messenger of Allah ﷺ as Allah willed it to enter, so Allah عز وجل revealed, "And do not drive away those who call upon their Lord morning and evening, seeking His face" [Anam 6:52], the verse.

Ibn Majah 4128

Sahih

حدثنا يحيى بن حكيم حدثنا أبو داود حدثنا قيس بن الربيع عن المقدام بن شريح عن أبيه عن سعد قال نزلت هذه الآية فينا ستة في وفي

ابن مسعود وصهيب وعمار والمقداد وبلال قال

قالت قريش لرسول الله ﷺ إنا لا نرضى أن نكون أتباعا لهم فاطردهم عنك قال فدخل قلب رسول الله ﷺ من ذلك ما شاء الله أن يدخل فأنزل الله عز وجل {ولا تطرد الذين يدعون ربهم بالغداة والعشي يريدون وجهه} الآية

ابن ماجه 4128صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Asceticism
Chapter
Sitting with the poor
Numbering
Darussalam 4128
Ibn Majah 4128