Imam Mujahid (may Allah have mercy on him) narrates: I was sitting with Sayyiduna Ibn Abbas (may Allah be pleased with them both) one day when a man came to him and said: "O Abu Abbas! I have divorced my wife three times." Then the narrator mentioned the whole incident like the narration of Ayyub, and (Sayyiduna Ibn Abbas, may Allah be pleased with them both) said: "Allah Almighty has said: 'O Prophet, when you divorce women, divorce them at the start of their waiting period.'"
Isma'il bin Umayyah (may Allah have mercy on him) narrated from Ubaydullah bin Abi Yazid (may Allah have mercy on him) that he too was present in that gathering of Sayyiduna Ibn Abbas (may Allah be pleased with them both), and so he also heard from him what Mujahid (may Allah have mercy on him) narrated in this hadith.
Related hadith on this topic