Abdullah bin Abbas reported,

While the Prophet ﷺ was delivering a sermon, he noticed a man standing. He asked about him, and the people said, "That is Abu Israil. He has vowed to remain standing without sitting, not to seek shade, not to speak, and to fast."The Prophet ﷺ said, "Tell him to speak, to seek shade, and to sit, but to complete his fast."

Azami 7134

Sahih

عن ابن عباس قال

بينا النبي ﷺ يخطب إذا هو برجل قائم، فسأل عنه فقالوا: أبو إسرائيل نذر أن يقوم ولا يقعد، ولا يستظل، ولا يتكلم، ويصوم. فقال النبي ﷺ: مره فليتكلم وليستظل وليقعد، وليتم صومه.

الأعظمي 7134صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Oaths and vows
Chapter
Vows
Section
No fulfillment of a vow in disobedience
Numbering
Jami al-Kamil 7134 (2nd edition)
Azami 7134