Thousands of people packed a Detroit church on Friday to pay respects to Aretha Franklin, the musical giant whose legacy was evident in several hours of tributes in song. Here are some memorable moments.

Ariana Grande takes the stage

The 25-year-old pop princess Ariana Grande created a stir on Friday when she appeared early in the program at Aretha Franklin’s funeral. Wearing a black dress that caused some eyebrow raises on Twitter, she performed a reserved version of the diva’s classic “(You Make Me Feel Like) A Natural Woman,” saving her vocal firepower for the chorus. She received enthusiastic accompaniment from the house band at Greater Grace Temple.

But as she began to leave the stage, Ms. Grande was called back by the Bishop Charles H. Ellis III, who thanked her and confessed that he was less than familiar with her work. “When I saw Ariana Grande at the program, I thought that was a new something at Taco Bell,” he joked.

As they stood next to each other, the pastor’s arm around Ms. Grande’s waist, his hand remained pressed into the right side of her chest for more than 30 seconds. Viewers noticed Ms. Grande’s uncomfortable expression as she leaned away. Soon, the hashtag #RespectAriana was trending on Twitter.