BAYHAQI 10790:
from Ibn ʿAbbās —
[Machine] The Prophet ﷺ said, "There is no harm if a man looks at a female slave when he wants to buy her, as long as he looks at what is between her knees and the knot of her waist (her private parts)." This statement was narrated by Hafs ibn 'Umar, the judge of Aleppo, from Salih ibn Hassan. We also narrated it in the book of prayer from the hadith of 'Isa ibn Maymun, from Muhammad ibn Ka'b. Both chains of narration are weak, and Allah knows best.
البيهقي ١٠٧٩٠:
عن ابن عباس —
قَالَ النَّبِيُّ ﷺ لَا بَأْسَ أَنْ يُقَلِّبَ الرَّجُلُ الْجَارِيَةَ إِذَا أَرَادَ أَنْ يَشْتَرِيَهَا وَيَنْظُرَ إِلَيْهَا مَا خَلَا عَوْرَتَهَا وَعَوْرَتُهَا مَا بَيْنَ رُكْبَتِهَا إِلَى مَعْقِدِ إزَارِهَا تَفَرَّدَ بِهِ حَفْصُ بْنُ عُمَرَ قَاضِي حَلَبَ عَنْ صَالِحِ بْنِ حَسَّانَ وَرَوَيْنَاهُ فِي كِتَابِ الصَّلَاةِ مِنْ حَدِيثِ عِيسَى بْنِ مَيْمُونٍ عَنْ مُحَمَّدِ بْنِ كَعْبٍ وَالْإِسْنَادَانِ جَمِيعًا ضِعِيفَانِ وَاللهُ أَعْلَمُ
hadithunlocked.com