No tribe was more prestigious than Judah and none more lowly than Dan... Said G-d: "Let the one come and be associated with the other [i.e., Betzalel from the tribe of Judah, and Ahaliav from the tribe of Dan, who were charged with the building of the Sanctuary] so that no man may despise [his fellow] or be arrogant, for both great and small are equal in G-d's sight"
Midrash Tanchuma