Al-Kāfi - Volume 1 > Chapter on Wish and Will
Hadith #3

3ـ عَلِيُّ بْنُ إِبْرَاهِيمَ عَنْ أَبِيهِ عَنْ عَلِيِّ بْنِ مَعْبَدٍ عَنْ وَاصِلِ بْنِ سُلَيْمَانَ عَنْ عَبْدِ الله بْنِ سِنَانٍ عَنْ أَبِي عَبْدِ الله (عَلَيْهِ السَّلام) قَالَ سَمِعْتُهُ يَقُولُ أَمَرَ الله وَلَمْ يَشَأْ وَشَاءَ وَلَمْ يَأْمُرْ أَمَرَ إِبْلِيسَ أَنْ يَسْجُدَ لآِدَمَ وَشَاءَ أَنْ لا يَسْجُدَ وَلَوْ شَاءَ لَسَجَدَ وَنَهَى آدَمَ عَنْ أَكْلِ الشَّجَرَةِ وَشَاءَ أَنْ يَأْكُلَ مِنْهَا وَلَوْ لَمْ يَشَأْ لَمْ يَأْكُلْ.

3. It is narrated from Ali ibn Ibrahim from his father from Aloi ibn Ma‘bad from Wasil ibn Sulayman from ‘Abdallah ibn Sinan who has said the following. “I hear Imam abu ‘Abdallah (a.s.) saying, “Allah commanded but did not want. He wanted but did not command. He commanded Satan to prostrate but He did not want it. If He wanted Satan would have prostrated. He prohibited Adam from eating of the tree and wanted him to eat. Had He not wanted he would not have ate.”