Isma'il bin Abd al-Malik (may Allah have mercy on him) narrates from Ata (may Allah have mercy on him) that a man came to him while I was present, and said: I have sworn that I will not clothe my family until the standing at Arafah, but these were not the days of Hajj. Ata (may Allah have mercy on him) said: Go and stand (at Arafah), and clothe your family. It was said to Ata (may Allah have mercy on him): He intended the Hajj. Ata (may Allah have mercy on him) said: Do you think that when Ayyub (peace be upon him) swore that he would beat his family, he swore that he would beat (them) with a bundle (of twigs)? The Qur'an is only examples and lessons.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الأيمان / 20031