There are a few possibilities for this confusion:
* Misattribution: The poem might be misattributed to Dunbar. Many poets have tackled similar themes, and it's easy for poems to be incorrectly associated with authors.
* Similar themes: The poem you are thinking of may share themes common in Dunbar's work like racism, death, and the struggles of Black people.
* A different title: The poem may have a slightly different title, and you're remembering it incorrectly.
If you have any further information about the poem, like specific lines or its context, it might be easier to find the true author.