"And he did grind in the prison house" (Judges 16:21). Rabbi Yohanan said: "grinding" here means nothing other than a term for transgression, as it is said, "Then let my wife grind unto another, and let others bow down upon her" (Job 31:10). This teaches that each one brought his wife to him in the prison house so that she might conceive from him.
Samson Grinding in the Prison House
Yalkut Shimoni on Nach 71:3
ויהי טוחן בבית האסורים. א"ר יוחנן אין טוחן אלא לשון עבירה שנאמר הטחן לאחר אשתי ועליה יכרעון אחרין מלמד שכל אחד הביא לו אשתו לבית האסורים כדי שתתעבר ממנו: