"They were commanded to say the tasbih thirty-three times following the prayer, and to say the tahmid thirty-three times, and to say the takbir thirty-four times, then a man from among the Ansar was told in a dream: 'Did the Messenger of Allah ﷺ command you to say the tasbih thirty-three times following the prayer, and to say the tahmid thirty-three times, and to say the takbir thirty-four times?' He said: 'Yes.' 'Instead of that, say each one twenty-five times, and include the tahlil among them.' The next morning he came to the Messenger of Allah ﷺ and told him about that, and he said: 'Do that.'" (Using translation from Nasāʾī 1350)
أَنْ نُسَبِّحَ فِي دُبُرِ كُلِّ صَلَاةٍ ثَلَاثًا وَثَلَاثِينَ وَنَحْمَدَهُ ثَلَاثًا وَثَلَاثِينَ وَنُكَبِّرَ أَرْبَعًا وَثَلَاثِينَ فَأُتِيَ رَجُلٌ أَوْ أُرِيَ رَجُلٌ مِنَ الْأَنْصَارِ فِي الْمَنَامِ فَقِيلَ «أَمَرَكُمْ رَسُولُ اللَّهِ ﷺ أَنْ تُسَبِّحُوا اللَّهَ فِي دُبُرِ كُلِّ صَلَاةٍ ثَلَاثًا وَثَلَاثِينَ وَتَحْمَدُوا ثَلَاثًا وَثَلَاثِينَ وَتُكَبِّرُوا أَرْبَعًا وَثَلَاثِينَ؟» قَالَ نَعَمْ قَالَ فَاجْعَلُوهَا خَمْسًا وَعِشْرِينَ خَمْسًا وَعِشْرِينَ وَاجْعَلُوا مَعَهَا التَّهْلِيلَ فَأُخْبِرَ بِذَلِكَ النَّبِيُّ ﷺ فَقَالَ «افْعَلُوهَا»