Sunan an-Nasa'i, Book 13, Hadith 173 (In-Book)

It was narrated from Ibn 'Umar that : A man saw in a dream that it was said to him: "What does your Prophet command you to do?" He said: "He commanded us to say Tasbih thirty-three times following the prayer, and to say the tahmid thirty-three times, and to say the takbir thirty-four times, and that makes one-hundred." He said: Say the tasbih twenty-five times and say the tahmid twenty-five times and say the takbir twenty-five times and say the tahlil twenty-five times, and that will make one hundred." The following morning he told the Prophet about that and the Messenger of Allah said: "Do what the Ansari said."

أَخْبَرَنَا عُبَيْدُ اللَّهِ بْنُ عَبْدِ الْكَرِيمِ أَبُو زُرْعَةَ الرَّازِيُّ، قَالَ حَدَّثَنَا أَحْمَدُ بْنُ عَبْدِ اللَّهِ بْنِ يُونُسَ، قَالَ حَدَّثَنِي عَلِيُّ بْنُ الْفُضَيْلِ بْنِ عِيَاضٍ، عَنْ عَبْدِ الْعَزِيزِ بْنِ أَبِي رَوَّادٍ، عَنْ نَافِعٍ، عَنِ ابْنِ عُمَرَ، أَنَّ رَجُلاً، رَأَى فِيمَا يَرَى النَّائِمُ قِيلَ لَهُ بِأَىِّ شَىْءٍ أَمَرَكُمْ نَبِيُّكُمْ صلى الله عليه وسلم قَالَ أَمَرَنَا أَنْ نُسَبِّحَ ثَلاَثًا وَثَلاَثِينَ وَنَحْمَدَ ثَلاَثًا وَثَلاَثِينَ وَنُكَبِّرَ أَرْبَعًا وَثَلاَثِينَ فَتِلْكَ مِائَةٌ ‏.‏ قَالَ سَبِّحُوا خَمْسًا وَعِشْرِينَ وَاحْمَدُوا خَمْسًا وَعِشْرِينَ وَكَبِّرُوا خَمْسًا وَعِشْرِينَ وَهَلِّلُوا خَمْسًا وَعِشْرِينَ فَتِلْكَ مِائَةٌ فَلَمَّا أَصْبَحَ ذَكَرَ ذَلِكَ لِلنَّبِيِّ صلى الله عليه وسلم فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ افْعَلُوا كَمَا قَالَ الأَنْصَارِيُّ ‏" ‏ ‏.‏

sunnah.com