The Messenger of Allah ﷺ said, "There are no days in which righteous deeds are more beloved to Allah than these days," meaning the ten days of Dhul-Hijjah.The Companions asked, "Messenger of Allah, not even striving in the path of Allah?"He replied, "Not even striving in the path of Allah, except for a man who goes out with himself and his wealth and returns with neither."
حدثنا عثمان بن أبي شيبة حدثنا وكيع حدثنا الأعمش عن أبي صالح ومجاهد ومسلم البطين عن سعيد بن جبير
قال رسول الله ﷺ ما من أيام العمل الصالح فيها أحب إلى الله من هذه الأيام يعني أيام العشر قالوا يا رسول الله ولا الجهاد في سبيل الله قال ولا الجهاد في سبيل الله إلا رجل خرج بنفسه وماله فلم يرجع من ذلك بشيء
Bukhari narrated it in the Book of the Two Eids, Chapter on the Merit of Deeds During the Days of Tashriq, hadith no. 969, from the hadith of Sulayman Amash, with this wording.