[Machine] The Messenger of Allah ﷺ stayed in Khaybar for forty days, praying two units of prayer alone. Al-Hasan bin Umara also performed this prayer, although he did not need to do so.
أَقَامَ رَسُولُ اللهِ ﷺ بِخَيْبَرَ أَرْبَعِينَ يَوْمًا يُصَلِّي رَكْعَتَيْنِ رَكْعَتَيْنِ تَفَرَّدَ بِهِ الْحَسَنُ بْنُ عُمَارَةَ وَهُوَ غَيْرُ مُحْتَجٍّ بِهِ