The Rambam · Sefer Ahavah
הלכות ברכות ט׳Blessings 9
Chapter 9 of 11 in Blessings — 9 halachot
Halacha 1א׳
כשם שאסור לאדם ליהנות במאכל או במשקה קודם ברכה כך אסור לו ליהנות בריח טוב קודם ברכה וכיצד מברך על ריח טוב אם היה זה שיש להריח עץ או מין עץ מברך בורא עצי בשמים ואם היה עשב או מין עשב מברך בורא עשבי בשמים ואם לא היה מן העץ ולא מן האדמה כגון המור שהוא מן החיה מברך בורא מיני בשמים ואם היה פרי הראוי לאכילה כגון אתרוג או תפוח מברך שנתן ריח טוב בפירות ועל הכל אם אמר בורא מיני בשמים יצא.
Just as a person is forbidden to partake of food or drink without first saying a blessing, so it is forbidden to enjoy a fragrant odor without a previous blessing. What blessing is said for a fragrant odor? If the odoriferous substance was wood or something that comes from wood,*e.g. bark of a tree. the blessing is "Who createst fragrant trees." If it was a herb, or something that comes from a herb, the blessing is "Who createst fragrant herbs". If it was neither wood nor a herb, as for instance musk which comes from a wild beast, the blessing is "Who createst diverse kinds of spices." If it was an edible fruit, such as a citron or an apple, the blessing is "Who givest a goodly scent to fruits." If for any of these things, one said "Who createst diverse kinds of spices," he has fulfilled his duty.
Halacha 2ב׳
אין מברכין על המוגמר עד שתעלה תמרתו וכיצד מברכין עליו אם היה זה הנשרף שנתן ריח מעץ מברכין בורא עצי בשמים ואם היה עשב עשבי בשמים ואם היה ממין חיה וכיוצא בה מברך עליו בורא מיני בשמים.
The blessing for incense is not recited till its smoke ascends. What blessing is said for it? If the substance which is burnt and gives forth an odor is of wood, the blessing is "Who createst fragrant trees." If it is a herb,—"Who createst fragrant herbs." If it is an animal substance or something similar, the blessing said is "Who createst diverse kinds of spices."
Halacha 3ג׳
שמן של אפרסמון וכיוצא בו מברך עליו בורא שמן ערב אבל שמן זית שכבשו או שטחנו עד שחזר ריחו נודף מברך עליו בורא עצי בשמים שמן שבשמו כעין שמן המשחה מברך עליו בורא מיני בשמים הביאו לפניו שמן והדס מברך על ההדס ופוטר את השמן מפני שברכה אחת לשתיהן והוא עצי בשמים.
For balsam oil and similar substances, the blessing is "Who createst sweet-smelling oil." But for oil of olives pressed or ground with fragrant species of wood till it emits a fragrant odor, the blessing is "Who createst spicy plants." For oil made fragrant with sweet-smelling essences like the oil of anointment, the blessing is "Who createst diverse kinds of spices." When oil and a branch of myrtle are brought at the same time, the blessing is said for the myrtle, and this exempts one from the obligation of saying a blessing for the oil,—the same blessing being said for both, namely, "Who createst fragrant plants."
Mishneh Torah, Hebrew Wikisource edition, via Sefaria — CC BY-SA
English: The Mishneh Torah by Maimonides, tr. Moses Hyamson, 1937-1949 — public domain