It is narrated from Ibn Abi Ayash that he was sitting with Abdullah bin Zubair and Asim bin Umar (may Allah be pleased with them) when Muhammad bin Iyas bin Bukair came to them and asked: "A man from among the desert dwellers has given his wife three divorces before consummating the marriage. What do you say about this?" Upon this, Ibn Zubair (may Allah be pleased with him) said: "We do not have any knowledge about this matter. You should go to Ibn Abbas and Abu Hurairah (may Allah be pleased with them). I have found both of them present at Aisha's (may Allah be pleased with her) place. Ask them about the issue and then come back and inform us as well." He went and asked them, so Ibn Abbas (may Allah be pleased with him) said to Abu Hurairah (may Allah be pleased with him): "He has brought a serious matter to you, so give him a verdict!" Abu Hurairah (may Allah be pleased with him) said: "One divorce will make her irrevocably separated, and three will make her unlawful for him until she marries another husband." And Ibn Abbas (may Allah be pleased with him) also said the same. Imam Shafi'i (may Allah have mercy on him) said: "These three companions and Aisha (may Allah be pleased with her) did not dislike this."
Hadith Referenceمسند الإمام الشافعي / كتاب الطلاق / 1252
Hadith Takhrijصحيح أخرجه البيهقي 3357 - وفى المعرفة السنن والآثار له (4486) والطحاوي في شرح معانی الآثار : (57/3)۔