Yahya related to me from Malik that he had heard that when the Messenger of Allah ﷺ had finished his tawaf of the House, prayed two rakas, and wanted to go to Safa and Marwa, he would salute the corner of the Black Stone before he left.
أَنَّ رَسُولَ اللَّهِ ﷺ كَانَ إِذَا قَضَى طَوَافَهُ بِالْبَيْتِ وَرَكَعَ الرَّكْعَتَيْنِ وَأَرَادَ أَنْ يَخْرُجَ إِلَى الصَّفَا وَالْمَرْوَةِ اسْتَلَمَ الرُّكْنَ الأَسْوَدَ قَبْلَ أَنْ يَخْرُجَ