Malik related to me from Abdullah ibn Abi Bakr that Abu Talha al- Ansari was praying in his garden when a wild pigeon flew in and began to fly to and fro trying to find a way out. The sight was pleasing to him and he let his eyes follow the bird for a time and then he went back to his prayer but could not remember how much he had prayed. He said, "A trial has befallen me in this property of mine." So he came to the Messenger of Allah ﷺ and mentioned the trial that had happened to him in his garden and said, "Messenger of Allah, it is a sadaqa for Allah, so dispose of it wherever you wish."
أَنَّ أَبَا طَلْحَةَ الأَنْصَارِيَّ كَانَ يُصَلِّي فِي حَائِطِهِ فَطَارَ دُبْسِيٌّ فَطَفِقَ يَتَرَدَّدُ يَلْتَمِسُ مَخْرَجًا فَأَعْجَبَهُ ذَلِكَ فَجَعَلَ يُتْبِعُهُ بَصَرَهُ سَاعَةً ثُمَّ رَجَعَ إِلَى صَلاَتِهِ فَإِذَا هُوَ لاَ يَدْرِي كَمْ صَلَّى فَقَالَ لَقَدْ أَصَابَتْنِي فِي مَالِي هَذَا فِتْنَةٌ فَجَاءَ إِلَى رَسُولِ اللَّهِ ﷺ فَذَكَرَ لَهُ الَّذِي أَصَابَهُ فِي حَائِطِهِ مِنَ الْفِتْنَةِ وَقَالَ يَا رَسُولَ اللَّهِ هُوَ صَدَقَةٌ لِلَّهِ فَضَعْهُ حَيْثُ شِئْتَ