Prisons are mentioned in the Quran in these verses:
[8:70] O you prophet, tell the prisoners of war in your hands, “If God knew of anything good in your hearts, He would have given you better than anything you have lost, and would have forgiven you. God is Forgiver, Most Merciful.”
[12:32] She said, “This is the one you blamed me for falling in love with. I did indeed try to seduce him, and he refused. Unless he does what I command him to do, he will surely go to prison, and will be debased.”
[12:33] He said, “My Lord, the prison is better than giving in to them. Unless You divert their scheming from me, I may desire them and behave like the ignorant ones.”
[12:34] His Lord answered his prayer and diverted their scheming from him. He is the Hearer, the Omniscient.
[12:35] Later, they saw to it, despite the clear proofs, that they should imprison him for awhile.
[12:36] Two young men were in the prison with him. One of them said, “I saw (in my dream) that I was making wine,” and the other said, “I saw myself carrying bread on my head, from which the birds were eating. Inform us of the interpretation of these dreams. We see that you are righteous.”
[12:37] He said, “If any food is provided to you, I can inform you about it before you receive it. This is some of the knowledge bestowed upon me by my Lord. I have forsaken the religion of people who do not believe in God, and with regard to the Hereafter, they are really disbelievers.
[12:38] “And I followed instead the religion of my ancestors, Abraham, Isaac, and Jacob. We never set up any idols beside God. Such is the blessing from God upon us and upon the people, but most people are unappreciative.
[12:39] “O my prison mates, are several gods better, or God alone, the One, the Supreme?
[12:40] “You do not worship beside Him except innovations that you have made up, you and your parents. God has never authorized such idols. All ruling belongs to God, and He has ruled that you shall not worship except Him. This is the perfect religion, but most people do not know.
[12:41] “O my prison mates, one of you will be the wine butler for his lord, while the other will be crucified – the birds will eat from his head. This settles the matter about which you have inquired.”
[12:42] He then said to the one to be saved “Remember me at your lord.” Thus, the devil caused him to forget his Lord, and, consequently, he remained in prison a few more years.
[12:43] The king said, “I saw seven fat cows being devoured by seven skinny cows, and seven green spikes (of wheat), and others shriveled. O my elders, advise me regarding my dream, if you know how to interpret the dreams.”
[12:44] They said, “Nonsense dreams. When it comes to the interpretation of dreams, we are not knowledgeable.”
[12:45] The one who was saved (from the prison) said, now that he finally remembered, “I can tell you its interpretation, so send me (to Joseph).”
[12:100] He raised his parents upon the throne. They fell prostrate before him. He said, “O my father, this is the fulfillment of my old dream. My Lord has made it come true. He has blessed me, delivered me from the prison, and brought you from the desert, after the devil had driven a wedge between me and my brothers. My Lord is Most Kind towards whomever He wills. He is the Knower, the Most Wise.”
[26:29] He said, “If you accept any god, other than me, I will throw you in the prison.”
To learn more, read the Quran in English.
Want to study the Quran every week? We provide online Friday meetings every Friday.