Hadithcore
Sahih al-Bukhari, 6698
sahih

Narrated Sa`id bin 'Ubada Al-Ansari:

that he consulted the Prophet (ﷺ) about a vow that had been made by his mother who died without fulfilling it. The Prophet (ﷺ) gave his verdict that he should fulfill it on her behalf. The verdict became Sunna (i.e. the Prophet's tradition).

حَدَّثَنَا أَبُو الْيَمَانِ، أَخْبَرَنَا شُعَيْبٌ، عَنِ الزُّهْرِيِّ، قَالَ أَخْبَرَنِي عُبَيْدُ اللَّهِ بْنُ عَبْدِ اللَّهِ، أَنَّ عَبْدَ اللَّهِ بْنَ عَبَّاسٍ، أَخْبَرَهُ أَنَّ سَعْدَ بْنَ عُبَادَةَ الأَنْصَارِيَّ اسْتَفْتَى النَّبِيَّ صلى الله عليه وسلم فِي نَذْرٍ كَانَ عَلَى أُمِّهِ، فَتُوُفِّيَتْ قَبْلَ أَنْ تَقْضِيَهُ‏.‏ فَأَفْتَاهُ أَنْ يَقْضِيَهُ عَنْهَا، فَكَانَتْ سُنَّةً بَعْدُ‏.‏

References2 variants
In-Book Reference
Book 83, Hadith 75
USC-MSA web (English) reference
Vol. 8, Book 78, Hadith 689 (deprecated numbering scheme)