Jami` at-Tirmidhi, Book 20, Hadith 14 (Tirmidhi 1571)

Narrated Anas:

"A Woman vowed to walk to the House of Allah, so the Prophet (ﷺ) asked about that, and he said: 'Verily Allah is in no need of her walking, order her to ride.'"