Reference for Berakhot 86:11
ת"ר הביאו לפניהם שמן ויין ב"ש אומרים אוחז השמן בימינו ואת היין בשמאלו מברך על השמן וחוזר ומברך על היין ב"ה אומרים אוחז את היין בימינו ואת השמן בשמאלו מברך על היין וחוזר ומברך על השמן וטחו בראש השמש ואם שמש ת"ח הוא טחו בכותל מפני שגנאי לתלמיד חכם לצאת לשוק כשהוא מבושם
Our Rabbis have taught : If oil and wine are set before him, Bet Shammai declare : He should take hold of the oil in his right hand and the wine in his left, say the benediction over the oil and then over the wine ; Bet Hillel declare : He should take hold of the wine in his right hand and the oil in his left, say the benediction over the wine and then over the oil. And he should rub the oil upon the head of the attendant ; but if the attendant be a disciple of the wise, he should rub it upon the wall, because it is a disgrace for a disciple of the wise to go into the street perfumed.