Whenever the Messenger of Allah ﷺ approached a town by night, he would not launch an attack until morning. If he heard the call to prayer, he would hold back, and if he did not hear the call to prayer, he would launch the attack.
حدثنا يعقوب حدثنا أبي عن محمد بن إسحاق قال حدثني حميد الطويل
أن رسول الله ﷺ كان إذا غشي قرية بياتا لم يغر حتى يصبح فإن سمع تأذينا للصلاة أمسك وإن لم يسمع تأذينا للصلاة أغار