There is no loss in salutation and in prayer. Abu Dawud said: According to the version of Ibn Mahdi, this tradition has been narrated by Ibn Fudail as a statement of Abu Hurairah and not as a saying of the Prophet ﷺ
لاَ غِرَارَ فِي تَسْلِيمٍ وَلاَ صَلاَةٍ