It is narrated from Sayyiduna Zayd bin Thabit (may Allah be pleased with him) that he said: I heard the Messenger of Allah (peace and blessings be upon him) say: "If Allah Almighty were to punish the inhabitants of His heavens and the inhabitants of His earth, He would punish them without being unjust to them; and if He were to have mercy on them, His mercy would be better for them than their deeds. If you had gold equal to Mount Uhud and spent it in the way of Allah, it would not be accepted from you until you believe in the divine decree (qadar), all of it, its good and its bad; and if you were to die upon other than this (belief), you would enter the Fire (Hell)."
Imam Abu Dawud al-Tayalisi (may Allah have mercy on him) said: Other narrators narrate it from Sa'id bin Sinan (may Allah have mercy on him), from Wahb bin Khalid (may Allah have mercy on him), from Ibn al-Daylami (may Allah have mercy on him).
Imam Musaddad (may Allah have mercy on him) also narrated it via Yahya, Sufyan bin Sa'id, Sa'id bin Sinan and Wahb bin Khalid al-Himsi (may Allah have mercy on them) from Ibn al-Daylami (may Allah have mercy on him), who said: I met Sayyiduna Ubayy bin Ka'b (may Allah be pleased with him) and said to him: "Some doubt has arisen in my heart about the divine decree, so tell me something by which, I hope, Allah Almighty will remove it from my heart." He said: "Indeed, if Allah Almighty were to punish the inhabitants of His heavens," and then he mentioned the whole hadith up to where he said: "until you believe in the divine decree," and he added these words: "and you know that whatever befell you was not going to miss you, and whatever missed you was not going to befall you; and if you were to die in any other state, you would be admitted into the Fire." Ibn al-Daylami (may Allah have mercy on him) said: Then I met Sayyiduna Hudhayfah (may Allah be pleased with him) and he narrated the same to me; I met Sayyiduna Ibn Mas'ud (may Allah be pleased with him) and he narrated the same to me; then I met Sayyiduna Zayd bin Thabit (may Allah be pleased with him) and he narrated the like of it to me from the Prophet (peace and blessings be upon him).
Muhammad bin Kathir (may Allah have mercy on him) narrated it similarly via Sufyan bin Sa'id (may Allah have mercy on him).
Abu Bakr bin Abi Shaybah (may Allah have mercy on him) narrated it via Ishaq bin Sulayman Abu Yahya al-Razi, Abu Sinan and Wahb bin Khalid al-Himyari (may Allah have mercy on them), and mentioned everything that al-Tayalisi and Musaddad narrated.
I (al-Busiri) say: Imam Abu Dawud and Ibn Majah (may Allah have mercy on them) recorded it in their Sunans via Ibn al-Daylami (may Allah have mercy on him) (whose name is Abdullah bin Fayruz), from Sayyiduna Zayd bin Thabit (may Allah be pleased with him) as marfu' (attributed to the Prophet), and from Sayyiduna Ubayy bin Ka'b and Sayyiduna Hudhayfah (may Allah be pleased with them both) as mawquf (stopping at the Companion); however, the words "all of it, its good and its bad" are not found in their versions.