Sunan Ibn Majah, Book 24, Hadith 60 (Ibn Majah 2814)
It was narrated that ‘Amr bin ‘Abasah said:
“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.’”