Based on the photo, I think I would screw a washer and slip joint nut to the end of the 1.5 inch pipe coming out of the wall.
You could use
https://www.homedepot.com/p/Everbil...with-Rubber-Reducing-Washers-C2698C/205154062 for plastic nut and washer.
https://www.supplyhouse.com/Sioux-Chief-985-6-1-1-2-Die-Cast-Slip-Nuts-Chrome-Plated is a chrome plated metal nut. Still needs a washer.
Alternatively, you could screw FIP trap adapter onto the thread at the wall if that plastic nut and washer doesn't work for some reason.
BrassCraft 1-1/2 in. O.D. compression x 1-1/2 in. FIP waste connector with tube stop, with a rough brass body and nut. This adaptor is used to connect the p-trap to the drainage systems. It has an extruded
www.homedepot.com
Cut one of these in half.
The Plumber's Choice offers a broad range of high quality plumbing products, to fit all your commercial and residential needs. Our tubular drainage products are manufactured with highly durable polypropylene
www.homedepot.com
That one is plastic, but they also sell chrome.
Stick the cut end into the nut at the wall, and point the uncut end toward the trap. Then run a trap into that. I have shown plastic pieces, but they are all available in chrome too.
So at some point you use a reducing washer to adapt 1-1/4 to 1-1/2. That can be done at the input to the 1-1/2 inch trap.
The Everbilt 1-1/2 in. Plastic P-Trap is made using durable polypropylene plastic and ideal for tubular drain applications. Easy to install and includes a leak proof washer, reversible J-bend and threaded
www.homedepot.com
Features of the 1.5 in. Plastic Slip Joint Nut include a polypropylene construction for added durability. It is finished in white and designed for use in tubular drain applications. Sizes are in 1.25 in. or 1.5 in.
www.homedepot.com