A-Rod shared a congratulatory handwritten note Thursday on Twitter he received from the former president and his wife, Michelle.
Obama wrote: “After 26 years together, we can say that whatever challenges life may bring, sharing them with someone you love makes it all better.”
Rodriguez tweeted the note “means the world to us.”
The former Yankees shortstop and the “World of Dance” judge got engaged earlier this month.
It will be Lopez’s fourth marriage and Rodriguez’s second. Each has two children from previous marriages.