Someone plays an accompaniment through a phone speaker and you can hum it perfectly, yet your hands produce something else entirely. That gap is normal, and it closes with listening skills rather than with more patterns. Playing by ear means hearing a rhythm as separate parts, finding the point where it repeats, and copying the sound before you copy the strokes.
Hum it before you hit it
Play the recording and hum the drum part you want until you can do it without the track. If the humming wobbles, the pattern is not yet in your ear, and your hands will fill the gap with something they already know. Humming forces you to hold the shape of the phrase in working memory, which is the real skill behind playing without notation.
Separate the three voices
Even a simple accompaniment is a conversation between bass, tone and slap, and each one has its own job. Bass usually anchors the pulse, tone carries the movement, and slap marks the accents. Listen once for the bass only, then once for the slap, then once for the tones in between. Whatever you just noticed is what you were not hearing before.
Find the cycle, then slow it down
Rhythms repeat, so hunt for the moment where the whole pattern comes back around. Loop eight seconds around that point and listen a dozen times. The start of a phrase is often not the start of the bar, and players who search for the first note tend to lock onto a random spot and end up a beat off.
Next, drop the playback speed by a quarter. Most players hear a fast rhythm as a single texture and a slow one as separate events, and the spaces between strokes become obvious, including the ones you assumed were silent. Playing software that keeps the pitch steady is useful here; so is a phone app that can loop a phrase. Learn it at that speed and bring it back up in steps, not in one jump.
Answer, don’t copy
Take a short phrase and play it back from memory, then wait and play it again with one change — a different ending, the bass moved to another beat. That is call and response, and it is how djembe has always been taught. Copying builds a library; answering builds the ability to invent inside a rhythm, which is what a solo actually needs.
Use recordings as a test, not a prize
Keep a recording of a rhythm you want to learn and check in on it every few weeks. The track does not change, so any difference you hear is your ear getting sharper. When a part you could not separate suddenly jumps out at you, that is progress you can point to.
Ear training on a drum is not mystical. It is humming, isolating, looping and answering, done often enough that the pattern stops sounding like a wall of sound and starts sounding like three hands talking.