The verse "you see those in whose hearts is disease" refers to Abdullah ibn Ubayy — "they race toward their friendship" "saying we fear a calamity may befall us." Regarding the verse "your ally is only God, His Messenger, and the believers," from Jabir ibn Abdullah: Abdullah ibn Salam came to the Prophet complaining of the hardship he faced from the Jews, saying, "O Messenger of God, some from Qurayza and Banu al-Nadir have withdrawn and separated from us, sworn not to sit with us, and we cannot sit with your companions because of the distance," whereupon this verse was revealed; when the Prophet read it to him, he said, "we are content with God, His Messenger, and the believers as allies." Al-Kalbi relates similarly and adds: the continuation of the verse was revealed about Ali ibn Abi Talib, because he gave his ring to a beggar while bowing in prayer. From Ibn Abbas: Abdullah ibn Salam came with some who had believed, saying, "O Messenger of God, our homes are distant, we have no gathering place or companions to talk with, and our people, seeing that we believed in God and His Messenger, abandoned us, swearing not to sit with us, not to intermarry with us, not to speak with us," this weighed heavily on them, the Prophet read the verse, "your ally is only God, His Messenger, and the believers"; then he went out to the mosque, people were standing and bowing, he saw a beggar and said, "did anyone give you anything?", he said, "yes, a gold ring," he said, "who gave it to you?", he said, "that one standing," pointing to Ali ibn Abi Talib, he said, "in what state did he give it to you?", he said, "he gave it to me while bowing," the Prophet said the takbir and read the verse, "whoever takes God, His Messenger, and the believers as allies, let him know that the party of God are the victorious."
قوله تعالى: {فترى الذين في قلوبهم مرض} يعني عبد الله بن أبي {يسارعون فيهم} في ولايتهم {يقولون نخشى أن تصيبنا دائرة} الآية. قوله تعالى: {إنما وليكم الله ورسوله والذين آمنوا} {55} . قال جابر بن عبد الله: جاء عبد الله بن سلام إلى النبي - صلى الله عليه وسلم - فقال: يا رسول الله إن قوما من قريظة والنضير قد هاجرونا وفارقونا وأقسموا أن لا يجالسونا، ولا نستطيع مجالسة أصحابك لبعد المنازل، وشكى ما يلقى من اليهود، فنزلت هذه الآية، فقرأها عليه رسول الله - صلى الله عليه وسلم - فقال: رضينا بالله وبرسوله وبالمؤمنين أولياء. ونحو هذا قال الكلبي وزاد: أن آخر الآية نزل في علي بن أبي طالب رضوان الله عليه، لأنه أعطى خاتمه سائلا وهو راكع في الصلاة. (1) - أخبرنا أبو بكر التميمي قال: أخبرنا عبد الله ms134 بن محمد بن جعفر قال: حدثنا الحسين بن محمد بن أبي هريرة قال: حدثنا عبد الله ابن عبد الوهاب قال: حدثنا محمد بن الأسود، عن محمد بن مروان، عن محمد بن السائب، عن أبي صالح، عن ابن عباس قال: أقبل عبد الله بن سلام ومعه نفر من قومه قد آمنوا، فقالوا: يا رسول الله إن منازلنا بعيدة وليس لنا مجلس ولا متحدث، وإن قومنا لما رأونا آمنا بالله ورسوله وصدقناه رفضونا وآلوا على أنفسهم أن لا يجالسونا ولا يناكحونا ولا يكلمونا، فشق ذلك علينا، فقال لهم النبي عليه الصلاة والسلام: {إنما وليكم الله ورسوله والذين آمنوا} الآية. ثم إن النبي - صلى الله عليه وسلم - خرج إلى المسجد والناس بين قائم وراكع، فنظر سائلا فقال: "هل أعطاك أحد شيئا؟ " قال: نعم خاتم من ذهب، قال: "من أعطاكه؟ " قال: ذلك القائم، وأومأ بيده إلى علي بن أبي طالب - رضي الله عنه - فقال: "على أي حال أعطاك؟ " قال: أعطاني وهو راكع، فكبر النبي - صلى الله عليه وسلم - ثم قرأ: {ومن يتول الله ورسوله والذين آمنوا فإن حزب الله هم الغالبون} (1) -