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

It was narrated from Ibn 'Umar that : A man saw in a dream that it was said to him: "What does your Prophet (PBUH) 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 (PBUH) about that and the Messenger of Allah (PBUH) said: "Do what the Ansari said." Translation Not Available

Book Ref: Sunan An Nisai Book 13 Hadith 1351
Web Ref:  Sunan An Nisai Vol 2 Book 13 Hadith 1352