Mishkat al-Masabih 1282
وَعَنْ نَافِعٍ قَالَ: كُنْتُ مَعَ ابْنِ عُمَرَ بِمَكَّةَ وَالسَّمَاءُ مُغَيِّمَةٌ فَخَشِيَ الصُّبْحَ فَأَوْتَرَ بِوَاحِدَةٍ ثُمَّ انْكَشَفَ فَرَأَى أَنَّ عَلَيْهِ لَيْلًا فَشَفَعَ بِوَاحِدَةٍ ثُمَّ صَلَّى رَكْعَتَيْنِ رَكْعَتَيْنِ فَلَمَّا خَشِيَ الصُّبْح أوتر بِوَاحِدَة. رَوَاهُ مَالك
From Nafiʿ, who said: I was with Ibn ʿUmar in Makkah while the sky was cloudy. He feared the dawn, so he prayed witr with one. Then [the cloud] cleared, and he saw that there was still night left for him, so he made it even with one, then prayed two rakʿahs by two rakʿahs. When he feared the dawn, he prayed witr with one. Reported by Malik.