Abu Musa Ashari reported,

Abu Musa came to Umar and asked permission to enter three times, saying, "Abu Musa asks permission, the Ashari asks permission, Abdullah bin Qays asks permission." He was not granted permission, so he left.Umar then sent for him and asked, "What made you turn back?"Abu Musa replied, "The Messenger of Allah ﷺ said, 'Let one of you ask permission three times. If he is granted permission, well and good, otherwise let him return.'"Umar said, "Bring me proof of this."He went off, then came back and said, "This is Ubayy."Ubayy said, "Umar, do not be a torment to the companions of the Messenger of Allah ﷺ."Umar replied, "I will not be a torment to the companions of the Messenger of Allah ﷺ."

Abu Dawud 5181

Sahih

حدثنا مسدد حدثنا عبد الله بن داود عن طلحة بن يحيى عن أبي بردة

عن أبي موسى

أنه أتى عمر فاستأذن ثلاثا فقال يستأذن أبو موسى يستأذن الأشعري يستأذن عبد الله بن قيس فلم يؤذن له فرجع فبعث إليه عمر ما ردك قال قال رسول الله ﷺ يستأذن أحدكم ثلاثا فإن أذن له وإلا فليرجع قال ائتني ببينة على هذا فذهب ثم رجع فقال هذا أبي فقال أبي يا عمر لا تكن عذابا على أصحاب رسول الله ﷺ فقال عمر لا أكون عذابا على أصحاب رسول الله ﷺ

أبو داود 5181صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Manners
Chapter
How many times a man gives salam when seeking permission
Numbering
Darussalam 5181
Abu Dawud 5181