This question already has an answer here:
If there is any hadith as follows, A sahabi whene he was going out of town he instructed his wife that he had stock & kept all needy things in house and not to leave out till he returned. While he was out the wife hear her father's death news, when she clarify with prophet (s.a.w) about her situation prophet (s.a.w) told to obey her husband's orders and better not to leave the house. So she avoided her father's funeral. Prophet (s.a.w) himself went to her father's funeral, led prayer and while burriel prophet (s.a.w) told he will be in heaven for his daughter's deeds.
Is there any hadith like the above please clarify. If, yes quote the hadith and character names