סימן נד סעיף ז
בְּשָׂמִים שְׁחוּקִים שֶׁעֵרְבָן עִם סֻכָּר, הַבְּשָׂמִים הֵם הָעִקָּר וּמְבָרְכִין עֲלֵיהֶם בְּרָכָה הָרְאוּיָה לָהֶן. עַל אֱגוֹז מוּסְקַט בּוֹרֵא פְּרִי הָעֵץ. עַל קִּנָּמוֹן (צימרינד) בּוֹרֵא פְּרִי הָאֲדָמָה. וְכֵן עַל זַנְגְּבִיל (אונגבער) בּוֹרֵא פְּרִי הָאֲדָמָה.
In a mixture of ground spices and sugar, the spices are considered the primary ingredient,4This is true even if sugar is the greater part of the mixture with just a trace of spice added to it. The sugar is always secondary, it serves merely to soften the strong aroma of the spices. (Mishnah Berurah 203: 13) thus you should say the appropriate berachah over them. Over nutmeg, you say Borei peri ha'eitz, over cinnamon Borei peri ha'adamah, and over ginger, you say Borei peri ha'adamah.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)