Narrated Abu Usaid:On the day of (the battle of) Badr, Allah's Messenger (ﷺ) said to us, "When your enemy comes near to you (i.e. overcomes you by sheer number), shoot at them but use your arrows sparingly
Hadith No. 3985
Sahih al Bukhari