Deuteronomy 14:24-26 NIV

24 But if that place is too distant and you have been blessed by the LORD your God and cannot carry your tithe (because the place where the LORD will choose to put his Name is so far away),
25 then exchange1 your tithe for silver, and take the silver with you and go to the place the LORD your God will choose.

References for Deuteronomy 14:25

26 Use the silver to buy whatever you like: cattle, sheep, wine or other fermented drink,2 or anything you wish. Then you and your household shall eat there in the presence of the LORD your God and rejoice.3

References for Deuteronomy 14:26