Abdullah bin Umar reported,

He was asked about a man who vowed that no day would pass without him fasting, and then a day of Adha or Fitr coincided with that vow. He replied, "You have indeed in the Messenger of Allah an excellent example to follow" [Ahzab 33:21]. He did not fast on the day of Adha or the day of Fitr, nor did he hold it permissible to fast on those days.

Bukhari 6705

Sahih

حدثنا محمد بن أبي بكر المقدمي حدثنا فضيل بن سليمان حدثنا موسى بن عقبة حدثنا حكيم بن أبي حرة الأسلمي أنه سمع

عبد الله بن عمر رضي الله عنهما

سئل عن رجل نذر أن لا يأتي عليه يوم إلا صام فوافق يوم أضحى أو فطر فقال {لقد كان لكم في رسول الله أسوة حسنة} لم يكن يصوم يوم الأضحى والفطر ولا يرى صيامهما

البخاري 6705صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Oaths and vows
Chapter
Who vowed to fast for days and it coincided with Eid al-Adha or Eid al-Fitr
Numbering
Darussalam 6705
Bukhari 6705