Anas bin Malik (may Allah be pleased with him) said that when the Prophet (peace and blessings be upon him) set out for Badr, he consulted Abu Bakr and Umar (may Allah be pleased with them both) and the Muslims. Then he consulted them again, and the Ansar said: O company of the Ansar! The Prophet (peace and blessings be upon him) means you. They said: "Then we will not say as the Children of Israel said to Musa (peace be upon him): 'So go, you and your Lord, and fight; we are sitting right here.' [Surah al-Ma'idah: 24] By the One who sent you with the truth, even if you were to go as far as Bark al-Ghimad, we would follow you."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب آداب القاضي / 20302