It was narrated from 'Awn bin Abi Juhaifah that his father said: "I saw the Prophet ﷺ in Al-Batha'. Bilal brought out the water left over from his Wudu' and the people rushed toward it and I got some of it. Then a short spear was planted in the ground and he led the people in prayer, while donkeys, dogs and women were passing in front of him".
The Prophet's example also teaches us patience and perseverance; even though there were many distractions around him, he still managed to lead the people in prayer without being distracted by them. He showed us that if we want something badly enough, then nothing can stop us from achieving it - no matter how many obstacles come our way!