The Prophet ﷺ said: Cannot any one of you (according to the version of the narrator AbdulWarith) step forward or backward or at his right or left. The version of Hammad added: during prayer; that is, in supererogatory prayer.
قَالَ رَسُولُ اللَّهِ ﷺ أَيَعْجِزُ أَحَدُكُمْ قَالَ عَنْ عَبْدِ الْوَارِثِ أَنْ يَتَقَدَّمَ أَوْ يَتَأَخَّرَ أَوْ عَنْ يَمِينِهِ أَوْ عَنْ شِمَالِهِ زَادَ فِي حَدِيثِ حَمَّادٍ فِي الصَّلاَةِ يَعْنِي فِي السُّبْحَةِ