From Sahih Bukhari (Hadith 5151):
Narrated `Uqba:The Prophet (ﷺ) said: "The stipulations most entitled to be abided by are those with which you are given the right to enjoy the (women's) private parts (i.e. the stipulations of the marriage contract)
Reference: Bukhari 5151