Deuteronomy 14:24-25

14:24 When he blesses you, if the place where he chooses to locate his name is distant, 14:25 you may convert the tithe into money, secure the money, and travel to the place the Lord your God chooses for himself.