Abdullah bin Abbas reported,

The Messenger of Allah ﷺ passed by a man in Makkah who was standing in the sun. He asked, "What is this?"They said, "He has vowed to fast, not to seek shade until nightfall, not to speak, and to remain standing."The Prophet ﷺ said, "Let him speak, let him take shade, let him sit down, and let him complete his fast."Husayn bin Muhammad bin Shanba Wasiti reported to us that Ala bin Abdul-Jabbar narrated from Wahib, from Ayub, from Ikrima, from Ibn Abbas, from the Prophet ﷺ, a similar report. And Allah knows best.

Ibn Majah 2136

Sahih

حدثنا محمد بن يحيى حدثنا إسحق بن محمد الفروي حدثنا عبد الله بن عمر عن عبيد الله بن عمر عن عطاء

عن ابن عباس

أن رسول الله ﷺ مر برجل بمكة وهو قائم في الشمس فقال ما هذا قالوا نذر أن يصوم ولا يستظل إلى الليل ولا يتكلم ولا يزال قائما قال ليتكلم وليستظل وليجلس وليتم صومه حدثنا الحسين ابن محمد بن شنبة الواسطي حدثنا العلاء بن عبد الجبار عن وهيب عن أيوب عن عكرمة عن ابن عباس عن النبي ﷺ نحوه والله أعلم

ابن ماجه 2136صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Expiations
Chapter
Whoever mixed obedience with disobedience in his vow
Numbering
Darussalam 2136
Ibn Majah 2136