Sunan an-Nasa'i, Book 35, Hadith 55 (Nasa'i 3878)

'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."