It was narrated that 'Umar bin Khattab said:
"I made a vow during the Ignorance period and I asked the Prophet (ﷺ) (about it) after I became Muslim. He told me to fulfill my vow." (ES)
English reference (ES): Vol. 3, Book 11, Hadith 2129 (ES)
Arabic reference (ES): Book 11, Hadith 2210 (ES)