Hazrat Ata (may Allah have mercy on him) said: "If he has divorced her three times, then he may marry if he wishes."