Sayyiduna Ubadah bin al-Samit (may Allah be pleased with him) narrates: My grandfather gave his wife a thousand divorces. I came to the Prophet (peace and blessings be upon him) and asked him about it, and the Prophet (peace and blessings be upon him) said: "Does your grandfather not fear Allah Almighty? As for three divorces, he had the right to them (or: three divorces have taken effect from him); and as for nine hundred and ninety-seven divorces, they are transgression and wrongdoing. If Allah Almighty wills, He will punish him, and if He wills, He will forgive him."
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الطلاق / 7782