Wa `alaykum as-Salamu wa Rahmatullahi wa Barakatuh.
In the Name of Allah, Most Gracious, Most Merciful.
All praise and thanks are due to Allah, and peace and blessings be upon His Messenger.
In this fatwa:
The late prominent Saudi scholar Sheikh Ibn Baz (may Allah have mercy on him) was asked about this issue and he said,
This is the correct view. There is a difference of scholarly opinion concerning this matter, but this is the correct view with regard to both tawaf and Prayer, because the Prophet (peace be upon him) said, “If one of you breaks wind whilst praying, let him go and do wudu and repeat his prayer.” (Abu Dawud)
And tawaf is of the same nature as Prayer in general.
Allah Almighty knows best.
Editor’s note: This fatwa is from Ask the Scholar’s archive and was originally published at an earlier date.