The proposed agreement of this nature is not legally binding on the parties to the agreement, and may not be enforceable in law.
Each individual is entitled to a legitimate share in the jointly shared property as a right.
If the joint holding is no more feasible or possible then they can go for an amicable partition after which each individual can sell their respective share of proeprty without the consent or permission of the co-sharer.
If both the shareholders agree to sell the property jointly to the prospective buyer, then they both can execute a registered sale deed jointly in favor of the buyer immediately or later without partitioning the property.