Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
suyuti:5029a
Request/Fix translation

  

السيوطي:٥٠٢٩a

"إِنَّ الله ﷻ لَيُجَرِّبُ أَحَدَكُم بالبلاءِ وهو أَعْلَمُ به كما يُجَرِّبُ أَحدكُم ذَهبَهُ بالنارِ فمنهم من يخرج كالذهب الإِبريز ، فذاك الذي حماهُ الله من الشُّبهاتِ، ومنهم من يخُرجُ كالذهب دونَ ذلك فذلك الذي يَشُكُّ بعضَ الشّكِّ، ومنهم من يَخْرُجُ كالذهب الأَسودِ، فذاك الذي قد افْتُتِنَ".  

[طب] الطبرانى في الكبير [ك] الحاكم في المستدرك وتُعقِّبَ عن أَبي أُمامة (لأَن في سنده عُفَيْرَ ابن مَعْدانَ، ضعيف)

See similar narrations below:

Collected by Ḥākim, Ṭabarānī

The result of three types of people who are tried by Allah as a means of purification, and the meaning of the word 'fitnah'

hakim:7878Abū ʿAmr ʿUthmān b. Aḥmad al-Daqqāq b. al-Sammāk> Ibrāhīm b. al-Haytham al-Baladī > al-Ḥakīm b. Nāfiʿ > ʿUfayr b. Maʿdān > Sulaym b. ʿĀmir > Abū Umāmah

The Messenger of Allah ﷺ said, "Indeed, Allah tries each one of you with balāʾ (tribulations) while He is well aware of him. ˹He tries him˺ just like one of you ˹purifies˺ his gold with fire.

And from among them are (1) those who come out like the gold of Ibrīz (pure gold) and are the ones whom Allah ﷻ has saved from evil deeds; and (2) from among them is the one who comes out like gold of lesser quality and such is the one whole was ˹taken˺ by some doubts, and (3) from among them is the one who comes out like blackened gold, and such is the one who has ˹experienced˺ fitnah."  

This ḥadīth has a Ṣaḥīḥ chain but they (Bukhārī and Muslim) did not collect it.
الحاكم:٧٨٧٨أَخْبَرَنَا أَبُو عَمْرٍو عُثْمَانُ بْنُ أَحْمَدَ الدَّقَّاقِ بْنِ السَّمَّاكِ بِبَغْدَادَ ثَنَا إِبْرَاهِيمُ بْنُ الْهَيْثَمِ الْبَلَدِيُّ ثَنَا الْحَكِيمُ بْنُ نَافِعٍ ثَنَا عُفَيْرُ بْنُ مَعْدَانَ عَنْ سُلَيْمِ بْنِ عَامِرٍ عَنْ أَبِي أُمَامَةَ قَالَ

قَالَ رَسُولُ اللَّهِ ﷺ «إِنَّ اللَّهَ لَيُجَرِّبُ أَحَدَكُمْ بِالْبَلَاءِ، وَهُوَ أَعْلَمُ بِهِ، كَمَا يُجَرِّبُ أَحَدُكُمْ ذَهَبَهُ بِالنَّارِ:

(١) فَمِنْهُمْ مَنْ يَخْرُجُ كَالذَّهَبِ الْإِبْرِيزِ فَذَلِكَ الَّذِي نَجَّاهُ اللَّهُ تَعَالَى مِنَ السَّيِّئَاتِ، (٢) وَمِنْهُمْ مَنْ يَخْرُجُ كَالذَّهَبِ دُونَ ذَلِكَ فَذَلِكَ الَّذِي يَشُكُّ بَعْضَ الشَّكِّ، (٣) وَمِنْهُمْ مَنْ يَخْرُجُ كَالذَّهَبِ الْأَسْوَدِ فَذَلِكَ الَّذِي قَدِ افْتُتِنَ»  

هَذَا حَدِيثٌ صَحِيحُ الْإِسْنَادِ وَلَمْ يُخَرِّجَاهُ صحيح
tabarani:7698Abū Umāmah > Rasūl Allāh Ṣallá

[Machine] The Messenger of Allah ﷺ said, "Verily, Allah will test one of you with tribulation, just as one of you tests the purity of gold with fire. From it, there will come out that which is like the purest gold, and that is what Allah has protected from doubts. And from it, there will come out that which is like the impure gold, but not to the same degree. And that is what has caused some doubts. And from them, there will come out that which is like the blackest gold, and that is what has been corrupted."  

الطبراني:٧٦٩٨وَبِإِسْنَادِهِ عَنْ أَبِي أُمَامَةَ قَالَ

قَالَ رَسُولُ اللهِ ﷺ «إِنَّ اللهَ ﷻ لَيُجَرِّبُ أَحَدُكَمْ بِالْبَلَاءِ كَمَا يُجَرِّبُ أَحَدُكُمْ ذَهَبَهُ بِالنَّارِ فَمِنْهُ مَا يَخْرُجُ كَالذَّهَبِ الْإِبْرِيزِ فَذَلِكَ الَّذِي حَمَاهُ اللهُ ﷻ مِنَ الشُّبُهَاتِ وَمِنْهُ مَا يَخْرُجُ كَالذَّهَبَةِ دُونَ ذَلِكَ فَذَلِكَ الَّذِي شَكَّ بَعْضَ الشَّكِّ وَمِنْهُمْ مَنْ يَخْرُجُ كَالذَّهَبِ الْأَسْوَدِ فَذَلِكَ الَّذِي قَدِ افْتُتِنَ»