Al-Kāfi - Volume 4 > Saying Farewell to the House
Hadith #2

2ـ مُحَمَّدُ بْنُ يَحْيَى عَنْ أَحْمَدَ بْنِ مُحَمَّدٍ عَنْ إِبْرَاهِيمَ بْنِ أَبِي مَحْمُودٍ قَالَ رَأَيْتُ أَبَا الْحَسَنِ (عَلَيْهِ السَّلاَم) وَدَّعَ الْبَيْتَ فَلَمَّا أَرَادَ أَنْ يَخْرُجَ مِنْ بَابِ الْمَسْجِدِ خَرَّ سَاجِداً ثُمَّ قَامَ فَاسْتَقْبَلَ الْكَعْبَةَ فَقَالَ اللهمَّ إِنِّي أَنْقَلِبُ عَلَى أَلاَّ إِلَهَ إِلاَّ أَنْتَ .

2. Muhammad ibn Yahya has narrated from Ahmad ibn Muhammad from Ibrahim ibn abu Mahmud who has said the following: “I saw abu al-Hassan, ‘Alayhi al-Salam, when leaving through the door of Masjid. He bowed down in prostration. He then stood up and turned his face to al-Ka‘bah and said, ‘O Allah, I go back with my affirmation that no one deserves worship except You.’”