Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ahmad-zuhd:424ʿAbdullāh > Muḥammad b. Abū Bakr al-Muqaddamī > Sallām b. Abū al-Ṣahbāʾ > Thābit > Anas

[Machine] Allah revealed to Joseph, "Who saved you from being killed when your brothers plotted to kill you?" He replied, "You, my Lord." Allah said, "Who saved you from the well when they threw you into it?" He replied, "You, my Lord." Allah said, "Why did you not mention me to the people when you mentioned them?" He replied, "There was a word I spoke with my tongue." He replied, "By my might, I will surely imprison you for a specified period."  

الزهد لأحمد:٤٢٤حَدَّثَنَا عَبْدُ اللَّهِ أَخْبَرَنَا مُحَمَّدُ بْنُ أَبِي بَكْرٍ الْمُقَدَّمِيُّ حَدَّثَنَا سَلَّامُ بْنُ أَبِي الصَّهْبَاءِ أَخْبَرَنَا ثَابِتٌ عَنْ أَنَسٍ قَالَ

أَوْحَى اللَّهُ ﷻ إِلَى يُوسُفَ مَنِ اسْتَنْقَذَكَ مِنَ الْقَتْلِ إِذْ هَمَّ إِخْوَتُكَ أَنْ يَقْتُلُوكَ؟ قَالَ أَنْتَ يَا رَبِّ قَالَ فَمَنِ اسْتَنْقَذَكَ مِنَ الْجُبِّ إِذْ أَلْقَوْكَ فِيهِ؟ قَالَ أَنْتَ يَا رَبِّ قَالَ فَمَا لَكَ ذَكَرْتَ آدَمِيًّا وَنَسِيتَنِي؟ قَالَ كَلِمَةٌ تَكَلَّمَ بِهَا لِسَانِي قَالَ فَوَعِزَّتِي لَأُخْلِدَنَّكَ السِّجْنَ بِضْعَ سِنِينَ