The basis in the Quran and Sunnah
Allah commands the believers who stand for prayer to wash their faces and arms, wipe their heads and wash their feet, and mentions that one who has come from the toilet, or has touched women, and finds no water, performs tayammum (Quran 5:6).
The Prophet ﷺ said: "The prayer of one who has broken wudu is not accepted until he performs wudu". A man from Hadramawt asked Abu Hurayrah (may Allah be pleased with him) what the breaking is, and he replied: "Passing wind, whether silent or audible" (Sahih al-Bukhari 135).



