3.77 was not a factory ratio, your 4.0 auto would have had 3.07 or 3.55. Most likely 3.55. If 3.55, then any ratio will fit the rear axle. For the front axle, you will need a thick gearset to install onto the front arb.
If you have 3.07 then you will need thick gearsets for both front and rear.
For 4.0 auto on 35’s, I’d recommend 4.56. That’s a good balance between low end and high end power without revving too high for the power of the motor. The nature of the beast with the auto is about 3200 rpm at highway speed for good performance. If you went 4.88 you’d be more like 3500 rpm at 70.
Make sure to calculate how far off your Speedo is based on gps after the gear swap is done so that you buy the proper speedo gear to correct it. Having an accurate speedo is really underrated.