Mishkat al-Masabih
Book 30, Hadith 122
Arabic hadith text
وَعَن عَليّ قَالَ: كَانَتْ لِي مَنْزِلَةٌ مِنْ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ لَمْ تَكُنْ لِأَحَدٍ مِنَ الْخَلَائِقِ آتِيهِ بِأَعْلَى سَحَرٍ فَأَقُولُ: السَّلَامُ عَلَيْكَ يَا نَبِيَّ اللَّهِ فَإِنْ تَنَحْنَحَ انْصَرَفْتُ إِلَى أَهْلِي وَإِلَّا دَخَلْتُ عَلَيْهِ. رَوَاهُ النَّسَائِيُّ
Translation
ʿAli reported: I had a special standing with the Messenger of Allah ﷺ that no other creature had. I would come to him in the latter part of the night and say: ‘Peace be upon you, Prophet of Allah.’ If he cleared his throat, I would return to my family; otherwise, I would enter to see him. Al-Nasaʾi transmitted it.