מדרש אויף תהילים 146:8

יְהוָ֤ה ׀ פֹּ֘קֵ֤חַ עִוְרִ֗ים יְ֭הוָה זֹקֵ֣ף כְּפוּפִ֑ים יְ֝הוָ֗ה אֹהֵ֥ב צַדִּיקִֽים׃

גאָט בינדט אָפּ די געבונדענע, גאָט מאַכט זעעדיק די בלינדע, גאָט שטעלט אױף די געבױגענע, גאָט האָט ליב די גערעכטע.

Midrash Tanchuma

Our sages contend that after his master heard her accusations against him, he wanted to kill him, for it is said: His wrath was kindled (ibid., v. 19). In this instance it is written: His wrath was kindled, and elsewhere it is stated: My wrath shall wax hot, and I will kill you (Exod. 22:23). However, she told her husband: “Do not waste your money, let him remain in prison unto you are able to sell him and recover your investment.” She suggested this in the hope that he would someday be reconciled to her. Each day she visited Joseph and implored him: “Comply with my request.” And he would respond: “I have taken an oath.” Then she would say: “I will blind thee,” and he would answer” The Lord openeth the eyes of the blind (Ps. 146:8). “You will remain in chains until the day of your death,” she would shout, and he would retort” The Lord looseth the prisoners (ibid.). “Then I will exile thee among people in a distant land,” she exclaimed, and he would reply: The Lord preserveth the strangers (ibid.).
פֿרעגט אַ רבֿBookmarkShareCopy

Bereshit Rabbah

“The Lord was with Joseph, and extended him kindness, and placed his favor in the eyes of the commander of the prison” (Genesis 39:21).
“The commander of the prison placed in Joseph's charge all the prisoners who were in the prison, and everything that they did there, he would determine” (Genesis 39:22).

“The Lord was with Joseph...the commander of the prison placed…”29Rav Huna understands that the commander of the prison was none other than Potiphar himself. This is based on the fact that Joseph was in the prison of the chief executioner (Genesis 40:3), an appellation earlier applied to Potiphar (Genesis 39:1). Rav Huna asserts that Potiphar still had Joseph go and attend to a variety of tasks in his own home, where his wife would continue to harass Joseph (Maharzu). – Rav Huna said in the name of Rabbi Aḥa: His service was pleasant for his master, and he would go out and rinse his drinking glasses, set the tables, and make the beds. She would say to him: ‘In this matter, I mistreated [ashaktikha] you. As you live, I will mistreat you regarding other matters.’30She continued to proposition him and to threaten him if he would not submit to her demands. He would say to her: ‘[God] “Performs justice for the oppressed [laashukim]”’ (Psalms 146:7). [She would say:] ‘I will reduce your sustenance.’ He would say to her: ‘[God] “Provides food for the hungry”’ (Psalms 146:7). [She would say:] ‘I will shackle you.’ He would say to her: ‘“The Lord frees the imprisoned”’ (Psalms 146:7). [She would say:] ‘I will cause you to be bent over.’ He would say to her: ‘“The Lord straightens the bent”’ (Psalms 146:8). [She would say:] ‘I will blind your eyes.’ He would say to her: ‘“The Lord opens the eyes of the blind”’ (Psalms 146:8). How far did she go? Rav Huna said in the name of Rabbi Aḥa: She placed an iron bar beneath his neck until he would direct his glance toward her and look at her. Nevertheless, he would not look at her. That is what is written: “They tortured his legs with chains; his body was placed in iron” (Psalms 105:18).
“The commander of the prison did not oversee anything that was in his charge, for the Lord was with him, and everything that he did, the Lord made successful for him” (Genesis 39:23).
“The commander of the prison did not…” – until now, [this has been stated] regarding times of trouble; from where is it derived that [God was with Joseph] even in times of prosperity? The verse states: “And everything that he did, the Lord made successful for him.”
פֿרעגט אַ רבֿBookmarkShareCopy

Midrash Tehillim

"The Lord opens the eyes of the blind. There is no greater pain and suffering than blindness. It is similar to someone who passes by a caravan of camels and donkeys loaded with goods. An equal amount was given to each animal, and they were all charged with carrying the provisions for all of them. The owner of the caravan warned them to be careful not to put straw in one animal's load, saying, "I know what I have given him." They entered the country to unload their cargo. The owner of the house allowed them to do so, but first he had them unload the animal that he had charged the most. Similarly, the Lord commands the blind that there is no greater suffering than theirs. As it says (Deuteronomy 27:18), "Cursed is he who misleads the blind on the road." And when it comes to healing the world, the first to be healed are the blind, as it says, "The Lord opens the eyes of the blind." And who are these blind generations that walk in the Torah like blind people? As it says (Isaiah 59:10), "We grope like the blind along the wall." They all read and do not know what they are reading, they argue and do not know what they are arguing about. But in the future (Isaiah 35:5), "Then the eyes of the blind shall be opened." The Lord raises up the bowed down. And who are the bowed down? These are the Israelites who were exiled from their land. Since they were exiled from Jerusalem, they have not stood up straight, but have been bowed down before their enemies, walking under them. As it says in Isaiah (51:22-23), "Thus says your Lord, the Lord and your God, who pleads the cause of his people: Behold, I have taken out of your hand the cup of staggering; the bowl of my wrath you shall drink no more; and I will put it into the hand of your tormentors, who have said to you, ‘Bow down, that we may pass over you.’" Therefore it is said, "The Lord raises up the bowed down." The Lord loves the righteous. As it says (Proverbs 8:17), "I love those who love me." And it says (1 Samuel 2:30), "For those who honor me I will honor." They love me and I love them. But why do I love the righteous who do not belong to the family of Kohanim or Levites? It is because for Kohanim and Levites, their priesthood or Levite status is inherited from their fathers, as it says in Psalm 115:19-20, "The house of Aaron will bless the Lord, the house of Levi will praise the Lord." Therefore, if a person wants to become a Levite or a Kohen, they cannot, because their father was not a Levite or a Kohen. However, if one wants to become a righteous person, even if they were a Gentile, they can become righteous by volunteering and loving the Holy One, blessed be He, on their own. As it says in Psalm 33:1, "Rejoice in the Lord, O you righteous ones!" And that is why it is said, "The Lord loves the righteous."
פֿרעגט אַ רבֿBookmarkShareCopy