Hadithcore
Mishkat al-Masabih, 1006

Talq b. ‘Ali* reported God’s Messenger as saying, “When any of you breaks wind during prayer, he must withdraw, perform ablution, and repeat the prayer.” * This is a mistake in the text of the <i>Mishkat</i>. The name is ‘Ali b. Talq. Cf. Abu Dawud, <i>Salat</i>, 186. Abu Dawud transmitted it, and Tirmidhi transmitted it with something added and something omitted.

وَعَنْ طَلْقِ بْنِ عَلِيٍّ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «إِذَا فَسَا أَحَدُكُمْ فِي الصَّلَاةِ فَلْيَنْصَرِفْ فَلْيَتَوَضَّأْ وَلْيُعِدِ الصَّلَاةَ» . رَوَاهُ أَبُو دَاوُدَ وَرَوَى التِّرْمِذِيّ مَعَ زِيَادَة ونقصان

References1 variant
In-Book Reference
Book 4, Hadith 426