Anas bin Sirin (may Allah have mercy on him) said: A man bequeathed his wealth to me so that I would spend it in the path of Allah. I asked Ibn Umar (may Allah be pleased with them both), and he said: Indeed, Hajj too is part of the path of Allah, so spend it on that.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الوصايا / 12605