Inheritance (distribution Hierarchy And Second Marriage Of The Widow)
This is the Ijtihad of the prophet and disciplanary in nature. However, if one feels that in a particular case the rest should go to someone else, the authority (court etc) can decide otherwise.