The President said the prayer when he joined the Muslim faithful at the Kofar Arewa Eid ground in his hometown of Daura in Katsina State to observe the Eid-El-Kabir prayers.
The President had arrived in Daura on Monday for the Eid festivities.
He was joined at the prayer ground by the Emir of Daura, Umar Farouk, and other senior government officials.
After the prayers, the President walked back to his residence some 750 metres from the prayer ground and slaughtered the symbolic ram as a crowd of his supporters cheered him on.
President Muhammadu Buhari on Tuesday prayed for a bumper harvest and food security in Nigeria to reduce the importation of food and stop rice smuggling.
In his Sallah message to the nation on Monday, the President asked all Nigerians to rise above personal, group, sectarian and other interests and to promote harmony and tolerance at all times.
He also appealed to all Muslims to use the occasion for sober reflection and self-examination, and to strive to be good ambassadors of their religion by upholding high moral values.
“We must sacrifice for others and remember always those who are less fortunate than ourselves,” the President said.
He, however, regretted that selfishness, greed, and corruption have overwhelmed peoples’ souls to the extent that they abandon their religious beliefs in pursuit of their greed.