In line with the Qur'anQur'an 102:1 ↗أَلۡهَىٰكُمُ ٱلتَّكَاثُرُ
Abundance distracts you.
The verse the messenger recites in the report rebukes being distracted by competing for more, matching the warning against saying 'my wealth, my wealth'.
In line with the Qur'anQur'an 16:96 ↗مَا عِندَكُمۡ يَنفَدُ وَمَا عِندَ ٱللَّهِ بَاقٖۗ وَلَنَجۡزِيَنَّ ٱلَّذِينَ صَبَرُوٓاْ أَجۡرَهُم بِأَحۡسَنِ مَا كَانُواْ يَعۡمَلُونَ
What you have runs out, but what is with God remains. We will reward those who are patient according to the best of their deeds.
The verse says what people hold runs out while what is with God remains, matching that only charity given away truly stays one's own.
In line with the Qur'anQur'an 63:10 ↗وَأَنفِقُواْ مِن مَّا رَزَقۡنَٰكُم مِّن قَبۡلِ أَن يَأۡتِيَ أَحَدَكُمُ ٱلۡمَوۡتُ فَيَقُولَ رَبِّ لَوۡلَآ أَخَّرۡتَنِيٓ إِلَىٰٓ أَجَلٖ قَرِيبٖ فَأَصَّدَّقَ وَأَكُن مِّنَ ٱلصَّٰلِحِينَ
And give from what We have provided for you, before death approaches one of you, and he says, “My Lord, if only You would delay me for a short while, so that I may be charitable, and be one of the righteous.”
The verse commands spending from what God provided before death comes, matching the report's point that wealth given in charity is what one keeps.