Prophet Dawūd ؑ was married to Yasīʿ similar to how the Prophet ﷺ was married to Zaynab ؓ
Regarding ˹the āyah˺ "˹it is˺ the Way of Allah with those who preceeded” (Aḥzāb 33:62) he said: ˹that it was about Prophet˺ Dawūd and the woman that he married and her name was Yasīʿ. This was also the Way with Muḥammad ﷺ and Zaynab.
فِي قَوْلِهِ {سُنَّةَ اللهِ فِي الَّذِينَ خَلَوْا مِنْ قَبْلُ} قَالَ «دَاوُدُ وَالْمَرْأَةُ الَّتِي نَكَحَ وَزَوْجُهَا اسْمُهَا الْيَسِيعُ فَذَلِكَ سَنَةٌ فِي مُحَمَّدٍ وَزَيْنَبَ»