We fought In the company of the Messenger of Allah (ﷺ) with the tribe of Juhaina. They fought with us terribly. When we had finished the noon prayer, the polytheists said: Had we attacked them at once. we would have killed them. Gabriel informed the Messenger of Allah (ﷺ) about It (about their evil design). The Messenger of Allah (ﷺ) made a mention of it to us, adding that they (the polytheists) had also said: Shortly there would be time for the 'Asr prayer. which is dearer o them (the Muslims) than even their children. So when the time of the 'Asr prayer came. we formed ourselves into two rows, while the polytheists were between us and the Qibla. The Messenger of Allah (ﷺ) said: Allah is Most Great, and we also said so. He bowed and we also bowed. He went down in prostration and the first row prostrated along with him. When they stood up, the second row went down in prostration. Then the first row went into the rear, and the second row came in the front and occupied the place of the first row. The Messenger of Allah (ﷺ) then said: Allah is Most Great, and we also said so. He then bowed, and we also bowed. He then went down in prostration and along with him the row also (went down in prostration), and the second row remained standing. And when the second row had also prostrated and all of them sat down then the Messenger of Allah (ﷺ) pronounced salutation to them. Abu Zubair said: Jabir made a mention specially of this thing: just as your chiefs observe prayer.
Sahih Muslim Book 6, Hadith 374
“Whenever he
appointed a man to lead a military detachment, the Messenger of Allah
(ﷺ) would advise him especially to fear Allah and treat the Muslims
with him well. He (ﷺ) said: ‘Fight in the Name of Allah and in
the
cause of Allah. Fight those how disbelieve in Allah. Fight but do
not
be treacherous, do not steal from the spoils of war, do not
mutilate
and do not kill children. When you meet your enemy from
among the
polytheists, call them to one of three things. Whichever of
them they
respond to, accept it from them and refrain from fighting
them. Invite
them to accept Islam, and if they respond then accept it
from them and
refrain from fighting them. Then invite them to leave
their land and
move to the land of the polytheists. Tell them that if
they do that,
then they will have the same rights and duties as the
polytheists. If
they refuse, then tell them that they will be like
the Muslim Bedouins
(who live in the desert), subject to the same
rulings of Allah as the
believers. But they will have no share of
Fay’* or war spoils, unless
they fight alongside the Muslims. If
they refuse to enter Islam, then
ask them to pay the Poll-tax. If
they do that, then accept it from
them and refrain from fighting
them. But if they refuse, then seek the
help of Allah against them
and fight them. If you lay siege to them
and they want you to give
them the protection of Allah and your
Prophet, do not give them the
protection of Allah and your Prophet,
rather give them your
protection and the protection of your father and
your Companions, for
if you violate your protection and the protection
of your fathers,
that is easier than violating the protection of Allah
and the
protection of His Messenger. If you lay siege to them and they
want
you to let them come out with a promise of the judgement of Allah
and
His Messenger (ﷺ), do not offer them a promise of the judgement
of
Allah and His Messenger (ﷺ), rather offer them your judgement,
because you do not know if you will actually pass (the same as)
Allah’s judgement regarding them or not.’”
Another chain reports a similar hadith.
Sunan Ibn Majah Book 24, Hadith 106
Safiya got her menses on the night of Nafr (departure from Hajj), and she said, "I see that I will detain you." The Prophet (ﷺ) said, "Aqra Halqa! Did she perform the Tawaf on the Day of Nahr (slaughtering)?" Somebody replied in the affirmative. He said, "Then depart." (Different narrators mentioned that) `Aisha said, "We set out with Allah''s Apostle (from Medina) with the intention of performing Hajj only. When we reached Mecca, he ordered us to finish the Ihram. When it was the night of Nafr (departure), Safiya bint Huyay got her menses. The Prophet (ﷺ) said, "Halqa Aqra! I think that she will detain you," and added, "Did you perform the Tawaf (Al-Ifada) on the Day of Nahr (slaughtering)?" She replied, "Yes." He said, "Then depart." I said, "O Allah''s Apostle! I have not (done the Umra)." He replied, "Perform `Umra from Tan`im." My brother went with me and we came across the Prophet (ﷺ) in the last part of the night. He said, "Wait at such and such a place."
Sahih al-Bukhari Book 25, Hadith 247