Abu Saeed Khudri reported,

The Messenger of Allah ﷺ said, "Seek it in the last ten nights of Ramadan. Seek it on the ninth, the seventh, and the fifth."I said, "Abu Saeed, you know the counting better than we do."He replied, "Indeed."I asked, "What are the ninth, the seventh, and the fifth?"He explained, "When twenty-one nights have passed, the night that follows is the ninth. When twenty-three have passed, the night that follows is the seventh. And when twenty-five have passed, the night that follows is the fifth."

Abu Dawud 1383

Sahih

حدثنا محمد بن المثنى حدثنا عبد الأعلى أخبرنا سعيد عن أبي نضرة

عن أبي سعيد الخدري قال

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

أبو داود 1383صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Ramadan
Chapter
Regarding those who said it is the night of the twenty-first
Numbering
Darussalam 1383
Abu Dawud 1383