12:10
قَالَ قَآئِلٌ مِّنْ هُمْ لَا تَقْتُلُ وا۟ يُوسُفَ وَ أَلْقُ و هُ فِى غَيَٰبَتِ ٱلْ جُبِّ يَلْتَقِطْ هُ بَعْضُ ٱل سَّيَّارَةِ إِن كُن تُمْ فَٰعِلِينَ
Said a speaker among them, "Do not kill Joseph but throw him into the bottom of the well; some travelers will pick him up - if you would do [something]."
28:8
فَ ٱلْتَقَطَ هُۥٓ ءَالُ فِرْعَوْنَ لِ يَكُونَ لَ هُمْ عَدُوًّا وَ حَزَنًا إِنَّ فِرْعَوْنَ وَ هَٰمَٰنَ وَ جُنُودَ هُمَا كَانُ وا۟ خَٰطِـِٔينَ
And the family of Pharaoh picked him up [out of the river] so that he would become to them an enemy and a [cause of] grief. Indeed, Pharaoh and Haman and their soldiers were deliberate sinners.