Bereshit / Genesis 41:16 · Drash
וַיַּעַן יוֹסֵף אֶת־פַּרְעֹה לֵאמֹר בִּלְעָדָי אֱלֹהִים יַעֲנֶה אֶת־שְׁלוֹם פַּרְעֹה׃
And Yosef answered Pharaoh, saying: "Not I. The Almighty will give Pharaoh an answer of peace."
Drash דְּרָשׁ
Praying for the kingdom
Yosef was brought from the dungeon straight to the king. The midrash notices how he speaks: with respect for royal power and without a trace of pride in himself.
Bereshit Rabbah: Yosef "ascribed the greatness to its Owner" and did not take it for himself. The sages debate how many years of famine the dream foretold, and say the famine stopped when Yaakov came to Egypt. Lekach Tov: "for Pharaoh's welfare" — from here we learn that a person should pray for the welfare of the government.
How Bereshit Rabbah and Midrash Lekach Tov explain it
Bereshit Rabbah
"And Pharaoh sent and called Yosef" and so on: to show honour to the kingship. "And Yosef answered Pharaoh, saying: not I, the Almighty": he ascribed the greatness to its Owner. "Seven cows." Rabbi Yehudah and Rabbi Nechemyah. Rabbi Yehudah said: there were fourteen years, since Pharaoh sees. Rabbi Nechemyah said: there were twenty-eight years, since Pharaoh told Yosef. The sages said: there were forty-two years, since Pharaoh sees and tells Yosef, and Yosef tells it back to Pharaoh. Rabbi Yose bar Chanina said: the famine lasted two years, for as soon as Yaakov our father went down there, the famine went away. And when did they return? In the days of Yechezkel, as it is said: "and I will make the land of Egypt a desolation" (Yechezkel / Ezekiel 29:12).
Midrash Lekach Tov
"And Yosef answered Pharaoh, saying: not I, the Almighty will answer for Pharaoh's welfare." He ascribed the greatness to the Great One. From here, that a person should pray for the welfare of the government.
Takeaway
The Mishnah teaches: "pray for the welfare of the government, for were it not for fear of it, people would swallow one another alive" (Pirkei Avot / Ethics of the Fathers 3:2). Lekach Tov finds a source for this in Yosef.
Rabbi Yose bar Chanina relies on Yosef's words: "for these two years the famine has been" (45:6). Yaakov came, and blessing returned before its time.
Yosef has just come out of prison, shaved and in fresh clothes (41:14). And the first thing he speaks of is not himself, but the Almighty and Pharaoh's welfare.