"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)
أَنْ يُسَبِّحُوا دُبُرَ كُلِّ صَلَاةٍ ثَلَاثًا وَثَلَاثِينَ وَيَحْمَدُوا ثَلَاثًا وَثَلَاثِينَ وَيُكَبِّرُوا أَرْبَعًا وَثَلَاثِينَ فَأُتِيَ رَجُلٌ مِنَ الْأَنْصَارِ فِي مَنَامِهِ فَقِيلَ أَمَرَكُمْ رَسُولُ اللهِ ﷺ أَنْ تُسَبِّحُوا دُبُرَ كُلِّ صَلَاةٍ ثَلَاثًا وَثَلَاثِينَ وَتَحْمَدُوا ثَلَاثًا وَثَلَاثِينَ وَتُكَبِّرُوا أَرْبَعًا وَثَلَاثِينَ قَالَ نَعَمْ قَالَ فَاجْعَلُوهَا خَمْسًا وَعِشْرِينَ وَاجْعَلُوا فِيهَا التَّهْلِيلَ فَلَمَّا أَصْبَحَ أَتَى النَّبِيَّ ﷺ فَذَكَرَ لَهُ ذَلِكَ فَقَالَ «اجْعَلُوهَا كَذَلِكَ»