Two Masters And One Slave

I have a big trouble which I cannot figure out how to solve it. I am using SD Card Module which uses SPI Serial Communication to Send/Receive Data between esp32 and SD Card Module or between Arduino And SD Card Under A Specific Condition .. The Question Here How Can I Implement the hardware to use the same SD Card Module With esp32 and Arduino Both ? I thought to control who is connected to SD Card Module Using Transistors Or Tri-State Buffers But It Didn't Work As I Expected .. So Anyone can help me with the connection of condition like this ?

Your description of what you want to do is not clear.

It is not even clear what the SD Card is connected to.

...R

3assy: Implement the hardware to use the same SD Card Module With esp32 and Arduino Both ?

Since you are probably talking about bits of wire around the place, why can't Arduino send the data on demand to ESP32, which passes it on to the SD it already handles? Most likely less wire, and no transistors at all.