Bless Hashem First
Because Shem blessed Avraham before he blessed Hashem, the kehunah passed to Avraham's children, teaching that the Master's honor always comes first.
When Malki-Tzedek, whom Chazal identify with Shem, greeted Avraham, he said, "Blessed is Avram to the Most High G-d," and only afterward, "Blessed is the Most High G-d." The Gemara teaches that Hashem had wanted the kehunah to come from Shem's own children. But Avraham said to him, "Does one place the blessing of the servant before the blessing of his master?" At that moment, the Gemara says, the kehunah was given to Avraham's descendants instead. Rebbi Zecharya reads the verse in Tehillim, "You are a kohen forever, al divrasi Malki-Tzedek," as "because of the words of Malki-Tzedek." Shem was a great tzaddik, a king and a kohen, and his blessing was sincere. Yet the order of his words mattered, and even honoring a tzaddik comes after honoring Hashem.
Source: Gemara, Nedarim 32b (on Bereishis 14:18–20 and Tehillim 110:4)
When something good happens, it is natural to thank the people who helped, and right to do so. Try putting Hashem first. The next time you hear good news, say "Baruch Hashem" before anything else, and then thank the doctor, the teacher, the friend. When you praise someone at a simcha, open with a word of thanks to Hashem. It takes a second, and it keeps every other blessing in its proper place.