BAYHAQI 7780:
from ʿAlī ؓ —
Three people came to the Prophet ﷺ and one of them said: O Messenger of Allah ﷺ, I had one hundred dinars and i gave ten of them in charity. The next one said: O Messenger of Allah ﷺ, I had ten dinars and I gave one of them in charity. The next one said: I had one dinar and I gave one-tenth of it in charity. The Messenger of Allah ﷺ said: “You are all the same in reward, for each of you gave one tenth of his wealth.” (Using translation from Aḥmad 743)
البيهقي ٧٧٨٠:
عن علي ؓ —
جَاءَ ثَلَاثَةُ نَفَرٍ إِلَى النَّبِيِّ ﷺ فَقَالَ أَحَدُهُمْ لِي مِائَةُ أُوقِيَّةٍ فَتَصَدَّقْتُ بِعَشَرَةِ أَوَاقٍ وَقَالَ الْآخَرُ لِي مِائَةُ دِينَارٍ فَتَصَدَّقْتُ بِعَشَرَةِ دَنَانِيرَ وَقَالَ الثَّالِثُ لِي عَشَرَةُ دَنَانِيرَ فَتَصَدَّقْتُ بِدِينَارٍ فَقَالَ النَّبِيُّ ﷺ تَصَدَّقَ كُلُّ رَجُلٍ مِنْكُمْ بِعُشْرِ مَالِهِ كُلُّكُمْ فِي الْأَجْرِ سَوَاءٌ
hadithunlocked.com