Sayyiduna Jabir bin Abdullah (may Allah be pleased with them both) narrated: We set out with the Messenger of Allah (peace and blessings be upon him) on the expedition of Dhat al-Riqa' from Nakhl, and a Muslim man struck down the wife of a man from the polytheists. When the Messenger of Allah (peace and blessings be upon him) set off on the return journey, her husband, who had been absent, came. When he was told the news, he swore that he would not rest until he had shed blood among the Companions of Muhammad (peace and blessings be upon him). Then he set out following the tracks of the Messenger of Allah (peace and blessings be upon him). The Messenger of Allah (peace and blessings be upon him) halted at a place and said: "Who will guard us tonight?" A man from the Muhajirun and a man from the Ansar stood up and said: O Messenger of Allah! We (will do it). He (peace and blessings be upon him) said: "Both of you go to the mouth of the valley." When they set out for the mouth of the valley, the Ansari said to the Muhajir: Which part of the night would you prefer, that is, will you sleep in the first part of the night or the last, so that I keep watch on your behalf? The Muhajir said: The first part of the night. The Muhajir lay down and fell asleep, and the Ansari stood up and began to pray. The woman's husband came; he saw that there was a guard, so he shot an arrow, which lodged in his body. The Ansari pulled it out and continued his prayer, standing in his place. He shot a second arrow, which also lodged in his body; the Ansari pulled it out as well and continued his prayer. The same happened a third time. Then he bowed and prostrated, then woke his companion and said: Sit up, for I have been wounded. So he sprang up. When the man saw the two of them, he realised that they had become alert to him, and he ran off. When the Muhajir saw the Ansari's blood, he said: Subhan Allah (Glory be to Allah)! Why did you not wake me when the arrow first struck you? The Ansari said: I was reciting a surah and did not like to stop before completing it. When he shot at me again and again, I completed the prayer and told you. By Allah! Were it not for fear of neglecting the post that the Messenger of Allah (peace and blessings be upon him) ordered me to guard, I would not have cared even if my life had gone before I completed that surah.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الطهارة / 663