Some people from the Ansar asked the Messenger of Allah for something, and he gave them. They asked him again, and he gave them again, until everything he had was gone.He said, "Whatever good comes into my possession, I will never withhold it from you. Whoever seeks chastity, Allah will grant him chastity . Whoever seeks patience, Allah will make him patient. No one has been given a gift better or more comprehensive than patience."
أخبرنا قتيبة عن مالك عن ابن شهاب عن عطاء بن يزيد
أن ناسا من الأنصار سألوا رسول الله فأعطاهم ثم سألوه فأعطاهم حتى إذا نفد ما عنده قال ما يكون عندي من خير فلن أدخره عنكم ومن يستعفف يعفه الله عز وجل ومن يصبر يصبره الله وما أعطي أحد عطاء هو خير وأوسع من الصبر
Reported by Muslim, Zakat, chapter on the excellence of self-restraint and patience and contentment and encouragement to all of that, hadith no. 1053, from Qutayba, and Bukhari, Zakat, chapter on refraining from asking, hadith no. 1469, from the hadith of Malik through this route, and it is in the Muwatta (Yahya's version) 2/997, and Kubra, hadith no. 2369.