It is not permissible to agree before the death of the inheritor on something that affects the inheritance rights such as depriving the female of the inheritance or increasing the shares and reducing the shares of some
In the event that the contract includes such that it is invalid, as the rules of inheritance and rights are considered not to be violated.