Writing on Twitter after her 2007 hit Don't Stop The Music was heard playing at a rally in Chattanooga, Tennessee, the 30-year-old vowed to ensure her songs would not be played at such rallies again.
The US president had been at the event in support of candidate Marsha Blackburn on Sunday ahead of the midterm elections on Tuesday.
Responding to a tweet saying her track was being played "as aides toss free Trump T-shirts into the crowd", the SOS singer said: "Not for much longer... me nor my people would ever be at or around one of those tragic rallies, so thanks for the heads up Philip!"
Earlier in the day, Rihanna endorsed Democratic candidate Andrew Gillum for governor of Florida.
When pop and politics collide
It's meant to inspire and get the crowd going, but mixing pop with politics does not always go to plan
"You have the opportunity to make history this election," wrote the Good Girl Gone Bad singer on Instagram. "The US has only had four black governors in its entire history, and we can help make #AndrewGillum the next one and Florida's first!"
The backlash follows musician Pharrell Williams sending Mr Trump a legal challenge over his use of the song Happy on the day of the Pittsburgh synagogue massacre.
More from Donald Trump
Donald Trump is taking a political gamble ahead of the US midterm elections
US midterms: Trump and Obama in final push ahead of high-stakes elections
Former VP Joe Biden calls for US midterm voters to reject division
North Korea threatens to restart nuclear weapons programme
HBO warn Donald Trump over Game Of Thrones image use
Donald Trump defends anti-immigrant video that blames Democrats
View this post on Instagram
FLORIDA: You have the opportunity to make history this election. The US has only had four black Governors in its entire history, and we can help make #AndrewGillum the next one and Florida’s first! If you’re tired of feeling like you don’t matter in the political process, know the most important thing you can do in supporting a candidate is finding someone who will take on critical issues such as: making minimum wage a livable wage, paying teachers what their worth, ensuring criminal justice reform, making healthcare a right, and repealing Stand Your Ground. That’s a platform we MUST support. Let’s #bringithome, Florida. Vote @andrewgillum. And VOTE YES on Amendment 4 to restore voting rights to folks who have already paid their debt to society. VOTE on November 6th!
A post shared by badgalriri (@badgalriri) on
Lawyers for the singer issued Mr Trump a cease and desist letter after he played the song at a political event in Indiana "on the day of the mass murder of 11 human bring at the hands of a deranged 'nationalist'".
The estate of Prince has also warned president about playing the late star's song Purple Rain at rallies, while Aerosmith frontman Steve Tyler took action over the use of his song Livin' On The Edge.