From his father and he was a Companion who said: "When the Messenger of Allah ﷺ dispatched any army or battalion, he would say to them: 'If you see a Masjid, or hear someone calling the Adhan, then do not kill anyone.'" (Using translation from Tirmidhī 1549)
أَنَّ النَّبِيَّ ﷺ كَانَ إِذَا بَعَثَ سَرِيَّةً قَالَ إِذَا سَمِعْتُمْ مُؤَذِّنًا أَوْ رَأَيْتُمْ مَسْجِدًا فَلَا تَقْتُلُوا أَحَدًا