Hasan al-Basri, may Allah have mercy on him, used to say at the end of his life: If the master sets her free, then the waiting period is three months. And if he does not set her free, then it is one menstrual cycle.
Hadith Referenceسنن سعید بن منصور / كتاب الطلاق / 2471
Hadith Takhrij«أخرجه سعيد بن منصور فى «سننه» ترقيم الدرالسلفية برقم:، 1294، وابن أبى شيبة فى «مصنفه» برقم: 19084»