Is the stipulation valid if a rooster is stipulated to wake the owner for prayer?

Chapter on Selling the Musarrah (Animal with milk retained in udder)

Al-Mughni

Book of Sales

Book 12 · Issue 15 · Bab 5

Open in Qurani

Primary text

The stipulation that a rooster will wake the owner for prayer is invalid because fulfillment cannot be guaranteed.