Sunan an-Nasa'i #3815
The Book of Oaths and Vows 35:55
'Uqbah bin 'Amir narrated that he asked the Prophet about a sister of his who had vowed to walk, barefoot and bareheaded. The Prophet said to him:
"Tell her to cover her head and ride, and fast for three days."