Hadithcore
Mishkat al-Masabih, 3441

Ibn ‘Abbas told that the sister of ‘Uqba b. ‘Amir took a vow to perform the Pilgrimage on foot, but was unable to do so. God’s Messenger then said, “God is not in need of your sister’s walking, so let her ride and present a sacrificial camel.”* Abu Dawud and Darimi transmitted it. *Arabic <i>budana</i> In a version by Abu Dawud it says the Prophet (ﷺ) ordered her to ride and offer animals for sacrifice.* In another version by him the Prophet (ﷺ) said, “God gets no good from the affliction your sister imposes on herself, so let her perform the Pilgrimage riding and make atonement for her oath.” Abu Dawud. *Arabic <i>hady</i>

وَعَنِ ابْنِ عَبَّاسٍ: أَنَّ أُخْتَ عُقْبَةَ بْنِ عَامِرٍ رَضِيَ اللَّهُ عَنْهُمْ نَذَرَتْ أَنْ تَحُجَّ مَاشِيَة وَأَنَّهَا لَا تطِيق ذَلِكَ فَقَالَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «إِنَّ اللَّهَ لَغَنِيٌّ عَنْ مَشْيِ أُخْتِكَ فَلْتَرْكَبْ وَلْتُهْدِ بَدَنَةً» . رَوَاهُ أَبُو دَاوُدَ وَالدَّارِمِيُّ وَفِي رِوَايَةٍ لِأَبِي دَاوُدَ: فَأَمَرَهَا النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ أَنْ تَرْكَبَ وَتُهْدِيَ هَدْيًا وَفِي رِوَايَةٍ لَهُ: فَقَالَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «إِنَّ اللَّهَ لَا يَصْنَعُ بِشَقَاءِ أُخْتِكَ شَيْئًا فَلْتَرْكَبْ ولتحج وتكفر يَمِينهَا»

References1 variant
In-Book Reference
Book 15, Hadith 35