While the film is directed by Tyler Perry and stars the iconic character Madea, the song itself isn't created by him.
The song is "Down On My Luck" by Bobby Womack and is actually a 1975 classic. This makes sense given the vintage feel of the song, which adds to the dramatic and emotional impact of the scene it's used in.