Mishkat al-Masabih 115
وَعَنِ ابْنِ الدَّيْلَمِيِّ قَالَ: أَتَيْتُ أُبَيَّ بْنَ كَعْبٍ فَقُلْتُ لَهُ: قَدْ وَقَعَ فِي نَفْسِي شَيْء من الْقدر فَحَدثني بِشَيْء لَعَلَّ الله أَن يذهبه من قلبِي قَالَ لَو أَن الله عَذَّبَ أَهْلَ سَمَاوَاتِهِ وأَهْلَ أَرْضِهِ عَذَّبَهُمْ وَهُوَ غَيْرُ ظَالِمٍ لَهُمْ وَلَوْ رَحِمَهُمْ كَانَتْ رَحْمَتُهُ خَيْرًا لَهُمْ مِنْ أَعْمَالِهِمْ وَلَوْ أَنْفَقْتَ مِثْلَ أُحُدٍ ذَهَبًا فِي سَبِيلِ اللَّهِ مَا قَبِلَهُ اللَّهُ مِنْكَ حَتَّى تُؤْمِنَ بِالْقَدَرِ وَتَعْلَمَ أَنَّ مَا أَصَابَكَ لَمْ يَكُنْ لِيُخْطِئَكَ وَأَنَّ مَا أَخْطَأَكَ لَمْ يَكُنْ لِيُصِيبَكَ وَلَوْ مُتَّ عَلَى غَيْرِ هَذَا لَدَخَلْتَ النَّارَ قَالَ ثُمَّ أَتَيْتُ عَبْدَ اللَّهِ بْنَ مَسْعُودٍ فَقَالَ مِثْلَ ذَلِكَ قَالَ ثُمَّ أَتَيْتُ حُذَيْفَةَ بْنَ الْيَمَانِ فَقَالَ مثل ذَلِك قَالَ ثُمَّ أَتَيْتُ زَيْدَ بْنَ ثَابِتٍ فَحَدَّثَنِي عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ مِثْلَ ذَلِكَ. رَوَاهُ أَحْمَدُ وَأَبُو دَاوُدَ وَابْنُ مَاجَهْ
From Ibn ad-Daylami, who said: I came to Ubayy ibn Kaʿb and said to him: "Something about the decree has fallen into my mind, so narrate something to me; perhaps Allah will remove it from my heart." He said: "If Allah were to punish the people of His heavens and the people of His earth, He would punish them while not being unjust to them; and if He had mercy on them, His mercy would be better for them than their deeds. If you were to spend the like of Uhud in gold in the way of Allah, Allah would not accept it from you until you believe in the decree and know that what has struck you was not going to miss you, and what has missed you was not going to strike you. If you were to die upon other than this, you would enter the Fire." He said: Then I came to ʿAbdullah ibn Masʿud, and he said the like of that. He said: Then I came to Hudhayfah ibn al-Yaman, and he said the like of that. He said: Then I came to Zayd ibn Thabit, and he narrated to me the like of that from the Prophet ﷺ. Reported by Ahmad, Abu Dawud and Ibn Majah.