Hadithcore
Al-Adab Al-Mufrad, 1066
sahih· Al-Albani

Regarding the person who asks for permission to enter before he gives the greeting, Abu Hurayra said, "He is not given permission until he has first given the greeting."

حَدَّثَنَا بَيَانُ، قَالَ‏:‏ حَدَّثَنَا يَزِيدُ، قَالَ‏:‏ حَدَّثَنَا عَبْدُ الْمَلِكِ بْنُ أَبِي سُلَيْمَانَ، عَنْ عَطَاءٍ، عَنْ أَبِي هُرَيْرَةَ فِيمَنْ يَسْتَأْذِنُ قَبْلَ أَنْ يُسَلِّمَ قَالَ‏:‏ لاَ يُؤْذَنُ لَهُ حَتَّى يَبْدَأَ بِالسَّلامِ‏.‏

References2 variants
In-Book Reference
Book 43, Hadith 16
English Reference
Book 43, Hadith 1066