It is narrated from al-Sha'bi that a man came to Ali bin Abi Talib (may Allah be pleased with him) and said: I divorced my wife, and she came after two months and said: My waiting period has ended. Qadi Shurayh was present with Ali (may Allah be pleased with him), and he (Ali) said: Give a judgement concerning her. He (Shurayh) said: While you are present, O Commander of the Faithful? He said: Yes. He (Shurayh) said: If she brings close members of her family who are upright, testifying that she has menstruated three times, (her claim stands); otherwise she is lying. Ali (may Allah be pleased with him) said: "Qalun", which in the Roman language means: You have judged correctly.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب العدد / 15405