Sunan Ibn Majah, Book 24, Hadith 8 (Ibn Majah 2762)

It was narrated from Thawban that the Messenger of Allah (ﷺ) said:

“The best Dinar that a man can spend is a Dinar that he spends on his family, a Dinar that he spends on a horse in the cause of Allah, and a Dinar that a man spends on his companions in the cause of Allah.”