It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "Every condition that is not in the Book of Allah is void, even if it be a hundred conditions."
This hadith has a supporting narration (shahid) in the two Sahihs, in the hadith of the Mother of the Believers Sayyidah Aishah (may Allah be pleased with her) in which Barirah (may Allah be pleased with her) and her being set free are mentioned.
Related hadith on this topic