I heard the Messenger of Allah ﷺ say, "Whoever spends a pair of anything in the path of Allah will be called from the gates of Paradise, 'Servant of Allah, this is good.' Whoever was among the people of prayer will be called from the gate of prayer. Whoever was among the people of jihad will be called from the gate of jihad. Whoever was among the people of charity will be called from the gate of charity. Whoever was among the people of fasting will be called from the gate of fasting, the gate of Rayyan."Abu Bakr said, "The one called from any of these gates would suffer no loss. But will anyone be called from all of them, Messenger of Allah?"He replied, "Yes, and I hope you will be among them, Abu Bakr."
سمعت رسول الله ﷺ، يقول: من أنفق زوجين من شيء من الأشياء في سبيل الله دعي من أبواب- يعني الجنة-: يا عبد الله هذا خير، فمن كان من أهل الصلاة دعي من باب الصلاة، ومن كان من أهل الجهاد دعي من باب الجهاد، ومن كان من أهل الصدقة دعي من باب الصدقة، ومن كان من أهل الصيام دعي من باب الصيام، وباب و الريان، فقال أبو بكر: ما على هذا الذي يدعى من تلك الأبواب من ضرورة، وقال: هل يدعى منها كلها أحد يا رسول الله؟ قال: نعم، وأرجو أن تكون منهم يا أبا بكر.
Bukhari narrated it in the Virtues of the Companions (3666), and Muslim in the Book of Zakat (85-1027), both through various routes from Zuhri, who said, Humayd bin Abdul-Rahman bin Awf told me that Abu Hurairah said, and then he related it. This is the wording of Bukhari, and Muslim's account is similar to it.In another wording found in both of them, "Whoever spends a pair of anything in the way of Allah will be called by the keepers of Paradise, each keeper of a gate saying, Come here, so-and-so." Abu Bakr said, "Messenger of Allah, that is one who suffers no loss." The Messenger of Allah ﷺ said, "I hope that you will be among them."Muslim narrated it in the Book of Zakat (1027-86), and this is his wording, and Bukhari in the Book of Jihad (2841), both through various routes from Shayban bin Abdul-Rahman, from Yahya bin Abu Kathir, from Abu Salama bin Abdul-Rahman, that he heard Abu Hurairah say, and then he related it.His saying "no loss" means no ruin.