“I heard the Messenger of Allah (ﷺ) say: ‘Whoever shoots an arrow at the enemy and his arrow reaches the enemy, whether it hits him or not, that is equivalent to him freeing a slave.’”
Sunan Ibn Majah Book 24, Hadith 60