This world also gives the sense of swarming...
وَمَا نَالَهُ is conjoined to ظُلْمَةُ الجُبِّ , implying that Joseph was not harmed by that which he suffered at his brothers hands, nor by grief and adversity. As to the phrase, أَنْ مَنَّ اللهُ , it appears that it involves the ellipsis of إلى (until) and relates to لَمْ تَضْرُرْ in two possible yet conflicting ways. Al-Majlisi (M) has mentioned several possible meanings of it whose description is not devoid of prolixity.
The meaning of the master of Joseph (A) becoming his slave is that he became subservient and obedient to him (A). Desire, The Source Of All Bondage Let it be known to you that in a man subjugated to the domination of lust and carnal desire, his servitude, servility and indignity increase in proportion to the intensity of their domination; for servitude means complete submission and obedience. The man obedient to lusts and subjugated to the carnal self is their obedient slave.
He submissively obeys whatever they command and is a humble and obedient servant and slave in front of them. This obedience reaches a limit when he prefers obedience to them to obedience to the Creator of the heavens and the earth. He prefers their service to the service of the real King of kind.