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.
bayhaqi:20895Abū ʿAbdullāh al-Ḥāfiẓ > ʿAbdullāh b. Muḥammad b. Ḥayyān al-Qāḍī > Muḥammad b. ʿAbd al-Raḥman b. Ziyād > Abū Yaḥyá al-Sājī or Fīmā Ajāz Lī Mushāfahah > al-Rabīʿ > al-Shāfiʿī

[Machine] To meet God with every sin is better than meeting Him with anything from these desires, and that is because he saw people arguing about destiny in front of him. Al-Shafi'i said in the book of Allah's will, "His will is independent of His creation, and His will is the will of Allah." Allah says: "And you do not will unless Allah wills." So, he knew that the will is for Him and he would affirm destiny.  

البيهقي:٢٠٨٩٥أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ أنبأ عَبْدُ اللهِ بْنُ مُحَمَّدِ بْنِ حَيَّانَ الْقَاضِي ثنا مُحَمَّدُ بْنُ عَبْدِ الرَّحْمَنِ بْنِ زِيَادٍ أنبأ أَبُو يَحْيَى السَّاجِيُّ أَوْ فِيمَا أَجَازَ لِي مُشَافَهَةً ثنا الرَّبِيعُ قَالَ سَمِعْتُ الشَّافِعِيَّ يَقُولُ

لَأَنْ يَلْقَى اللهَ الْعَبْدُ بِكُلِّ ذَنْبٍ مَا خَلَا الشِّرْكَ بِاللهِ خَيْرٌ مِنْ أَنْ يَلْقَاهُ بِشَيْءٍ مِنْ هَذِهِ الْأَهْوَاءِ وَذَلِكَ أَنَّهُ رَأَى قَوْمًا يَتَجَادَلُونَ فِي الْقَدَرِ بَيْنَ يَدَيْهِ فَقَالَ الشَّافِعِيُّ فِي كِتَابِ اللهِ الْمَشِيئَةُ لَهُ دُونَ خَلْقِهِ وَالْمَشِيئَةُ إِرَادَةُ اللهِ يَقُولُ اللهُ ﷻ {وَمَا تَشَاءُونَ إِلَّا أَنْ يَشَاءَ اللهُ} فَأَعْلَمَ خَلْقَهُ أَنَّ الْمَشِيئَةَ لَهُ وَكَانَ يُثْبِتُ الْقَدَرَ