Ibn Jurayj narrates: It reached Sayyiduna Ibn Abbas (may Allah be pleased with them both) that Sayyiduna Ibn Mas'ud (may Allah be pleased with him) says: If someone gives a divorce before marriage, it takes effect. Sayyiduna Ibn Abbas (may Allah be pleased with them both) said: "He has erred in this. Allah, the Mighty and Majestic, says: 'When you marry believing women and then divorce them before you have touched them' [Surah al-Ahzab: 49], and He did not say: When you divorce believing women and then marry them."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 9600