This question already has an answer here:
Scriptures tell us that the magi gave Mary and Joseph gold, frankincense and myrrh as presents. Although we do not know the amount given to them, it might not have been just a symbolic amount (e.g. 100 grams), as the magi were, apparently, representative of kings, if not kings themselves. As such, they were wealthy (and are traditionally represented as wealthy).
Is there any Christian tradition or author (e.g. Church Fathers) arguing that Mary and Joseph became rich with these gifts? Perhaps arguing what they did with these gifts? For example, maybe donated to the Temple?