DMX to Party (Up In Church)

3/2/2010 2:04 AM PST

DMX to Party (Up In Church)

DMX is putting on a "gospel rap extravaganza" at a high school next weekend ... provided he doesn't get arrested in the next four days.

TMZ has learned the oft-incarcerated rapper, real name Earl Simmons, agreed to perform at the Morning Star Sanctified Church for a fundraiser this Saturday -- and he's doing it for free.

According to Pastor Barbara King, DMX and his family have been members of the congregation for eight months now and he really wanted to help raise money for repairs.

We're told the school holding the event is amping up security because they're unsure of what kind of crowd the convicted felon will draw. Tickets are going from $35-$40 a pop.

FYI -- We're also told DMX doesn't swear anymore ... so we have absolutely no idea what he's going to perform.

UPDATE: DMX tells TMZ, "This is an opportunity for me to use my gifts to benefit a good cause. My music offers hope! God has been good to me!"