The Hadith says that only gold/silver would be beneficial. Is it worthless to own or purchase land?

The blessed Prophet (sallalahu ‘alahi wa sallam) also advised “if you have land – hold on to your land; and if you have animals – hold on to your animals . . .”