[Machine] Abu Talhah Al-Ansari used to pray in a particular area and was distracted by something. He hesitated and sought a way out. He found it fascinating and continued to follow it with his sight for a while, then he returned to his prayer. Upon finishing, he realized that he did not know how many units of prayer he had performed. He said, "A temptation has afflicted me concerning my wealth." He then went to the Messenger of Allah ﷺ and narrated to him the temptation that had occurred to him in the area where he prayed. The Prophet ﷺ said to him, "O Messenger of Allah, it is a charity, so place it wherever you like."
أَنَّ أَبَا طَلْحَةَ الْأَنْصَارِيَّ كَانَ يُصَلِّي فِي حَائِطٍ لَهُ فَطَارَدَ بِشَيْءٍ فَطَفِقَ يَتَرَدَّدُ يَلْتَمِسُ مَخْرَجًا فَأَعْجَبَهُ ذَلِكَ فَجَعَلَ يُتْبِعُهُ بَصَرَهُ سَاعَةً ثُمَّ رَجَعَ إِلَى صَلَاتِهِ فَإِذَا هُوَ لَا يَدْرِي كَمْ صَلَّى فَقَالَ لَقَدْ أَصَابَنِي فِي مَالِي هَذَا فِتْنَةٌ فَجَاءَ إِلَى رَسُولِ اللهِ ﷺ فَذَكَرَ لَهُ الَّذِي أَصَابَهُ فِي حَائِطِهِ مِنَ الْفِتْنَةِ فَقَالَ يَا رَسُولَ اللهِ هُوَ صَدَقَةٌ فَضَعْهُ حَيْثُ شِئْتَ