Rabbi Yehudah bar Ilai said: the early pious ones used to die of a bowel illness over ten or twenty days, to teach that the illness scours clean. Rabbi Yehudah says: anyone of whom "expiring" is said died of a bowel illness. Three of whom "in a good old age" is said: Abraham, David, and Gideon.
Why the Early Pious Died of Bowel Illness and a Good Old Age
Yalkut Shimoni on Torah 110:5
אָמַר רַבִּי יְהוּדָה בַּר אִלְעָאי, חֲסִידִים הָרִאשׁוֹנִים הָיוּ מֵתִים בְּחֹלִי מֵעַיִם בַּעֲשָׂרָה וּבְעֶשְׂרִים יוֹם לוֹמַר שֶׁהָחֹלִי מְמָרֵק רַבִּי יְהוּדָה אוֹמֵר, כָּל מִי שֶׁנֶּאֱמַר בּוֹ גְּוִיעָה מֵת בְּחֹלִי מֵעַיִם. שְׁלֹשָׁה שֶׁנֶּאֱמַר בָּהֶן בְּשֵׂיבָה טוֹבָה, אַבְרָהָם, דָּוִד וְגִדְעוֹן.