From Sahih Muslim (Hadith 4985):
Abu Tha'laba reported Allah's Messenger (ﷺ) having said this:If you shoot with your arrow and (the game) goes out of your sight and you find it (later on), then eat that if it has not gone rotten
Reference: Muslim 4985