Muwatta Malik 272
Tahajjud
وَحَدَّثَنِي عَنْ مَالِكٍ، عَنْ نَافِعٍ، أَنَّهُ قَالَ كُنْتُ مَعَ عَبْدِ اللَّهِ بْنِ عُمَرَ بِمَكَّةَ وَالسَّمَاءُ مُغِيمَةٌ فَخَشِيَ عَبْدُ اللَّهِ الصُّبْحَ فَأَوْتَرَ بِوَاحِدَةٍ ثُمَّ انْكَشَفَ الْغَيْمُ فَرَأَى أَنَّ عَلَيْهِ لَيْلاً فَشَفَعَ بِوَاحِدَةٍ ثُمَّ صَلَّى بَعْدَ ذَلِكَ رَكْعَتَيْنِ رَكْعَتَيْنِ فَلَمَّا خَشِيَ الصُّبْحَ أَوْتَرَ بِوَاحِدَةٍ .
Yahya related to me from Malik that Nafi said, "I was with Abdullah ibn Umar in Makka. The sky was clouded over and Abdullah feared that dawn was approaching so he prayed one raka for witr. Then the clouds cleared and he saw that it was still night, so he made his prayers even with one raka. Then he continued to pray two rakas at a time, until when he feared the approach of dawn, he prayed one raka for witr
Grading: Salim al-Hilali: Mauquf Sahih
Text from the public-domain hadith-api dataset. Numbering follows that dataset and can differ by a few from some printed editions — check the wording, not only the number.