Sahih Bukhari 6240 – Veil Verses Revealed When Umar (rta) Wished For It
There are two different versions of this narrative. One says what is cited and other says that it was after the directive of Hijab that Uamr objected to her coming out of her house and when she reported the incident the prophet allowed her to go out for need with jalbab. See all the versions here. https://islamicurdubooks.com/hadith/ad.php?bsc_id=5095