It is narrated from Sayyiduna Ali bin Talq (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "When someone passes wind during the prayer, he should go, perform ablution and repeat his prayer."
This hadith is explicit about repeating the prayer, and among the Companions this was also the view of Sayyiduna al-Miswar bin Makhramah (may Allah be pleased with him).
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 3381