And as Mālik said in the report related by Ibn Wahb:
“When one greets the Prophet ﷺ, he stands with his face toward the grave, not toward the qiblah; he comes close, offers salām, and makes supplication, and he is not to touch the grave with his hand (1). We have already cited his statement that one sends blessings upon him and prays for him.”
It is well known that sending blessings upon him and praying for him secures his intercession for a servant on the Day of Resurrection, just as he ﷺ said in the sound ḥadīth:
“When you hear the muʾadhdhin, repeat what he says; then send blessings upon me, for whoever sends one blessing upon me, Allah will send ten blessings upon him. Then ask Allah to grant me al-Wasīlah, for it is a rank in Paradise that is fitting only for one servant of Allah, and I hope to be that servant. Whoever asks Allah to grant me al-Wasīlah (2) shall receive my intercession on the Day of Resurrection.” (3)
Thus Mālik’s statement in this account—if it is indeed reliably attributed to him—(4) means that if you face him, invoke blessings and peace upon him, and ask Allah to grant him al-Wasīlah, he will intercede for you on the Day of Resurrection. On that Day all nations will seek nearness to Allah through his intercession, and a servant’s seeking his intercession in this life is (5) to perform the very acts by which he will intercede for him on the Day of Resurrection, such as asking Allah to grant him al-Wasīlah and the like (6).
Likewise, the version transmitted from him by Ibn Wahb states: when one greets the Prophet ﷺ and makes supplication, he is to stand facing the grave, not the qiblah, and to supplicate (7) and offer salām—that is, to pray for the Prophet ﷺ and for his two Companions.