Messenger of Allah ﷺ passed by a man in Makkah who was standing in the sun. He said: "What is this?" They said: "He vowed to fast and not to seek shade until night comes, and not to speak, and to remain standing." He said: "Let him speak and seek shade and let him sit down, but let him complete his fast."Another chain from Ibn 'Abbas, from the Prophet ﷺ, with similar wording. expiation for breaking an oath."
أَنَّ رَسُولَ اللَّهِ ﷺ مَرَّ بِرَجُلٍ بِمَكَّةَ وَهُوَ قَائِمٌ فِي الشَّمْسِ فَقَالَ مَا هَذَا قَالُوا نَذَرَ أَنْ يَصُومَ وَلاَ يَسْتَظِلَّ إِلَى اللَّيْلِ وَلاَ يَتَكَلَّمَ وَلاَ يَزَالَ قَائِمًا قَالَ لِيَتَكَلَّمْ وَلْيَسْتَظِلَّ وَلْيَجْلِسْ وَلْيُتِمَّ صِيَامَهُ حَدَّثَنَا الْحُسَيْنُ بْنُ مُحَمَّدِ بْنِ شَنَبَةَ الْوَاسِطِيُّ حَدَّثَنَا الْعَلاَءُ بْنُ عَبْدِ الْجَبَّارِ عَنْ وُهَيْبٍ عَنْ أَيُّوبَ عَنْ عِكْرِمَةَ عَنِ ابْنِ عَبَّاسٍ عَنِ النَّبِيِّ ﷺ نَحْوَهُ وَاللَّهُ أَعْلَمُ