Yahya related to me from Malik that he had heard that Ali ibn Abi Talib said, "Things that pass in front of a man praying do not break his prayer."
Muwatta Malik Book 9, Hadith 45