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.
bukhari:1404Aḥmad b. Shabīb b. Saʿīd from my father > Yūnus > Ibn Shihāb > Khālid b. Aslam > Kharajnā Maʿ ʿAbdullāh b. ʿUmar > Aʿrābī Akhbirnī Qawl

We went out with 'Abdullah bin 'Umar and a bedouin said (to 'Abdullah), "Tell me about Allah's saying: "And those who hoard up gold and silver (Al-Kanz - money, gold, silver etc., the Zakat of which has not been paid) and spend it not in the Way of Allah (V.9:34)." Ibn 'Umar said, "Whoever hoarded them and did not pay the Zakat thereof, then woe to him. But these holy Verses were revealed before the Verses of Zakat. So when the Verses of Zakat were revealed, Allah made Zakat a purifier of the property."  

البخاري:١٤٠٤وَقَالَ أَحْمَدُ بْنُ شَبِيبِ بْنِ سَعِيدٍ حَدَّثَنَا أَبِي عَنْ يُونُسَ عَنِ ابْنِ شِهَابٍ عَنْ خَالِدِ بْنِ أَسْلَمَ قَالَ خَرَجْنَا مَعَ عَبْدِ اللَّهِ بْنِ عُمَرَ ؓ فَقَالَ أَعْرَابِيٌّ

أَخْبِرْنِي قَوْلَ اللَّهِ {وَالَّذِينَ يَكْنِزُونَ الذَّهَبَ وَالْفِضَّةَ وَلاَ يُنْفِقُونَهَا فِي سَبِيلِ اللَّهِ} قَالَ ابْنُ عُمَرَ ؓ مَنْ كَنَزَهَا فَلَمْ يُؤَدِّ زَكَاتَهَا فَوَيْلٌ لَهُ إِنَّمَا كَانَ هَذَا قَبْلَ أَنْ تُنْزَلَ الزَّكَاةُ فَلَمَّا أُنْزِلَتْ جَعَلَهَا اللَّهُ طُهْرًا لِلأَمْوَالِ  


See similar narrations below:

Collected by Ibn Mājah
ibnmajah:1787ʿAmr b. Sawwād al-Miṣrī > ʿAbdullāh b. Wahb > Ibn Lahīʿah > ʿUqayl > Ibn Shihāb > Khālid b. Aslam a freed slave of ʿUmar b. al-Khaṭṭāb

“I went out with Abdullah bin Umar, and a Bedouin met him and recited to him the words of Allah: 'And those who hoard up gold and silver (the money, the Zakah of which has not been paid) and spend them not in the way of Allah.' Ibn Umar Said to him: 'The one who hoards it and does not pay Zakat due on it, woe to him. But this was before the (ruling on) Zakat was revealed. When it was revealed, Allah made it a purification of wealth.' Then he turned away and said: 'I do not mind if I have the (the equivalent of) Uhud in gold, provided that I know how much it is and I pay Zakat on it, and I use it in obedience of Allah, the Mighty and Sublime'”  

ابن ماجة:١٧٨٧حَدَّثَنَا عَمْرُو بْنُ سَوَّادٍ الْمِصْرِيُّ حَدَّثَنَا عَبْدُ اللَّهِ بْنُ وَهْبٍ عَنِ ابْنِ لَهِيعَةَ عَنْ عُقَيْلٍ عَنِ ابْنِ شِهَابٍ حَدَّثَنِي خَالِدُ بْنُ أَسْلَمَ مَوْلَى عُمَرَ بْنِ الْخَطَّابِ قَالَ خَرَجْتُ مَعَ عَبْدِ اللَّهِ بْنِ عُمَرَ فَلَحِقَهُ أَعْرَابِيٌّ فَقَالَ

لَهُ قَوْلُ اللَّهِ {وَالَّذِينَ يَكْنِزُونَ الذَّهَبَ وَالْفِضَّةَ وَلاَ يُنْفِقُونَهَا فِي سَبِيلِ اللَّهِ} قَالَ لَهُ ابْنُ عُمَرَ مَنْ كَنَزَهَا فَلَمْ يُؤَدِّ زَكَاتَهَا فَوَيْلٌ لَهُ إِنَّمَا كَانَ هَذَا قَبْلَ أَنْ تُنْزَلَ الزَّكَاةُ فَلَمَّا أُنْزِلَتْ جَعَلَهَا اللَّهُ طَهُورًا لِلأَمْوَالِ ثُمَّ الْتَفَتَ فَقَالَ مَا أُبَالِي لَوْ كَانَ لِي أُحُدٌ ذَهَبًا أَعْلَمُ عَدَدَهُ وَأُزَكِّيهِ وَأَعْمَلُ فِيهِ بِطَاعَةِ اللَّهِ ﷻ