The Prophet is more worthy of the believers than themselves,1 and his wives are [in the position of] their mothers. And those of [blood] relationship are more entitled [to inheritance] in the decree of Allāh than the [other] believers and the emigrants, except that you may do to your close associates a kindness [through bequest]. That was in the Book2 inscribed.
Translation: Saheeh International (English)
1 He (ﷺ) is more worthy of their obedience and loyalty and is more concerned for them than they are for one another.
The Prophet Muhammad (peace be upon him) has more right over the believers than their own selves in whatever he calls them to, even if they incline towards something else. And his wives are like mothers for all believers, hence it is unlawful for any believer to marry any of them after he passes away. Relatives are more deserving of one another in inheritance by Allah’s decree than the believers and those who migrated for Allah's cause, who would previously inherit by means of contractual agreement between themselves in the beginning of Islam. Then Allah abrogated their inheriting from one another after that. Except if you, O believers, do good towards your close associates besides the inheritors, by making a bequest for them and being kind to them, then that is your right. That is a decree inscribed in the Preserved Tablet.