I met Ubayy bin Kaab and said, "Abu Mundhir, something concerning divine decree has troubled my heart. Tell me something that might remove it from my heart."He said, "If Allah were to punish the inhabitants of His heavens and the inhabitants of His earth, He would do so without being unjust to them, and if He were to show them mercy, His mercy would be better for them than their own deeds. If you were to spend the equivalent of Mount Uhud in gold in the cause of Allah , Allah would not accept it from you until you believe in divine decree and know that whatever has befallen you was never going to miss you, and whatever has missed you was never going to befall you. If you died holding any other belief, you would enter the Fire."He said, "I then went to Hudhayfah, and he told me the same. I went to Ibn Masud, and he told me the same. I went to Zayd bin Thabit, and he narrated to me from the Prophet ﷺ the same."
حدثنا يحيى بن سعيد حدثنا سفيان حدثنا أبو سنان سعيد بن سنان حدثنا وهب بن خالد
لقيت أبي بن كعب فقلت يا أبا المنذر إنه قد وقع في نفسي شيء من هذا القدر فحدثني بشيء لعله يذهب من قلبي قال لو أن الله عذب أهل سمواته وأهل أرضه لعذبهم وهو غير ظالم لهم ولو رحمهم كانت رحمته لهم خيرا من أعمالهم ولو أنفقت جبل أحد ذهبا في سبيل الله عز وجل ما قبله الله منك حتى تؤمن بالقدر وتعلم أن ما أصابك لم يكن ليخطئك وما أخطأك لم يكن ليصيبك ولو مت على غير ذلك لدخلت النار قال فأتيت حذيفة فقال لي مثل ذلك وأتيت ابن مسعود فقال لي مثل ذلك وأتيت زيد بن ثابت فحدثني عن النبي ﷺ مثل ذلك
Its isnad is sahih. Its narrators are trustworthy and have been mentioned before. Wahb bin Khalid is the Himsi, trustworthy, and his hadith appears in Muslim. Ibn Daylami is Abdullah bin Fayruz, one of the trustworthy Followers.The hadith was narrated by Abu Dawud, 4/225, no. 4699, in the Book of Sunnah, chapter on Predestination, and Ibn Majah, 1/29, no. 77, in the Introduction, chapter on Predestination.