عَنْ عُمَرَ بْنِ الْخَطَّابِ رَضِيَ اللَّهُ عَنْهُ قَالَ: حَمَلْتُ عَلَى فَرَسٍ فِي سَبِيلِ اللَّهِ فَأَضَاعَهُ الَّذِي كَانَ عِنْدَهُ فَأَرَدْتُ أَنْ أَشْتَرِيَهُ وَظَنَنْتُ أَنَّهُ يَبِيعُهُ بِرُخْصٍ فَسَأَلْتُ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَقَالَ: «لَا تَشْتَرِهِ وَلَا تَعُدْ فِي صَدَقَتِكَ وَإِنْ أَعْطَاكَهُ بِدِرْهَمٍ فَإِنَّ الْعَائِدَ فِي صَدَقَتِهِ كَالْكَلْبِ يَعُودُ فِي قَيْئِهِ» . وَفِي رِوَايَةٍ: «لَا تَعُدْ فِي صَدَقَتِكَ فَإِنَّ الْعَائِدَ فِي صَدَقَتِهِ كالعائد فِي قيئه»
Translation

Buraida said that when he was sitting with the Prophet a woman came to him and said, “Messenger of God, I gave a slavegirl as sadaqa to my mother who has now died.” He replied. “Your reward is sure, and the inheritance has given her back to you.” She said, "Messenger of God, a month's fast was due from her; may I fast on her behalf ?” He replied, “Fast on her behalf.” She said, “She never performed the pilgrimage, so may I do so on her behalf ?” He replied, “Yes, perform the pilgrimage on her behalf.” Muslim transmitted it.