Rav Yehudah said in the name of Rav: Three things shorten a person's days. One who is given a Torah scroll to read from and does not read, for it is written, "For it is your life and the length of your days" (Deuteronomy 30:20). And a cup of blessing [over which] to recite the blessing, and he does not recite it, for it is written, "And I will bless those who bless you" (Genesis 12:3). And one who conducts himself with lordship [over others, seizing positions of authority], as Rabbi Hama bar Hanina said: Why did Joseph die before his brothers? Because he conducted himself with lordship.
Three Things That Shorten a Person's Days
Yalkut Shimoni on Torah 65:3
[סו] אָמַר רַב יְהוּדָה אָמַר רַב: שְׁלשָׁה דְבָרִים מְקַצְּרִין יָמָיו שֶׁל אָדָם. מִי שֶׁנּוֹתְנִין לוֹ סֵפֶר תּוֹרָה לִקְרוֹת וְאֵינוֹ קוֹרֵא, דִּכְתִיב: "כִּי הוּא חַיֶּיךָ וְאֹרֶךְ יָמֶיךָ" וְכוֹס שֶׁל בְּרָכָה לְבָרֵךְ וְאֵינוֹ מְבָרֵךְ, דִּכְתִיב: וַאֲבָרְכָה מְבָרֲכֶיךָ וּמַנְהִיג עַצְמוֹ בְּרַבָּנוּת, דְּאָמַר רַבִּי חָמָא בַּר חֲנִינָא: מִפְּנֵי מָה מֵת יוֹסֵף קֹדֶם אֶחָיו, מִפְּנֵי שֶׁהִנְהִיג עַצְמוֹ בְּרַבָּנוּת.