"A man came to the Prophet ﷺ and said: 'As-Salamu 'Alaykum (Peace be upon you).'" [He said:] "So the Prophet ﷺ said: 'Ten.' Then another came and he said: 'As-Salamu 'Alaykum Wa Rahmatullah (Peace be upon you, and the mercy of Allah).' So the Prophet ﷺ said: 'Twenty.' Then another came and said: 'As-Salamu 'Alaykum Wa Rahmatullahi Wa Barakatuh (Peace be upon you, and the mercy of Allah, and His Blessings).' So the Prophet ﷺ said: 'Thirty.'"
أَنَّ رَجُلاً جَاءَ إِلَى النَّبِيِّ ﷺ فَقَالَ السَّلاَمُ عَلَيْكُمْ قَالَ قَالَ النَّبِيُّ ﷺ عَشْرٌ ثُمَّ جَاءَ آخَرُ فَقَالَ السَّلاَمُ عَلَيْكُمْ وَرَحْمَةُ اللَّهِ فَقَالَ النَّبِيُّ ﷺ عِشْرُونَ ثُمَّ جَاءَ آخَرُ فَقَالَ السَّلاَمُ عَلَيْكُمْ وَرَحْمَةُ اللَّهِ وَبَرَكَاتُهُ فَقَالَ النَّبِيُّ ﷺ ثَلاَثُونَ